MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / SoftmaxLayer

Class SoftmaxLayer

arm_compute/graph/frontend/Layers.h:1328–1348  ·  view source on GitHub ↗

Softmax Layer */

Source from the content-addressed store, hash-verified

1326
1327/** Softmax Layer */
1328class SoftmaxLayer final : public ILayer
1329{
1330public:
1331 /** Construct a softmax layer.
1332 *
1333 * @param[in] beta (Optional) Beta value. Default 1.0.
1334 */
1335 SoftmaxLayer(float beta = 1.0f) : _beta(beta)
1336 {
1337 }
1338
1339 NodeID create_layer(IStream &s) override
1340 {
1341 NodeParams common_params = {name(), s.hints().target_hint};
1342 NodeIdxPair input = {s.tail_node(), 0};
1343 return GraphBuilder::add_softmax_node(s.graph(), common_params, input, _beta);
1344 }
1345
1346private:
1347 float _beta;
1348};
1349
1350/** Stack Layer */
1351class StackLayer final : public ILayer

Callers 15

do_setupMethod · 0.85
do_setupMethod · 0.85
do_setupMethod · 0.85
do_setupMethod · 0.85
do_setupMethod · 0.85
do_setupMethod · 0.85
do_setupMethod · 0.85
do_setupMethod · 0.85
do_setupMethod · 0.85
do_setupMethod · 0.85
do_setupMethod · 0.85
do_setupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected