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

Class ActivationLayer

arm_compute/graph/frontend/Layers.h:122–146  ·  view source on GitHub ↗

Activation Layer */

Source from the content-addressed store, hash-verified

120
121/** Activation Layer */
122class ActivationLayer final : public ILayer
123{
124public:
125 /** Construct an activation layer.
126 *
127 * @param[in] act_info Activation information
128 * @param[in] out_quant_info (Optional) Output quantization info
129 */
130 ActivationLayer(ActivationLayerInfo act_info, const QuantizationInfo out_quant_info = QuantizationInfo())
131 : _act_info(act_info), _out_quant_info(std::move(out_quant_info))
132 {
133 }
134
135 NodeID create_layer(IStream &s) override
136 {
137 NodeParams common_params = {name(), s.hints().target_hint};
138 NodeIdxPair input = {s.tail_node(), 0};
139 return GraphBuilder::add_activation_node(s.graph(), common_params, input, _act_info,
140 std::move(_out_quant_info));
141 }
142
143private:
144 ActivationLayerInfo _act_info;
145 const QuantizationInfo _out_quant_info;
146};
147
148/** ArgMinMax Layer */
149class ArgMinMaxLayer final : public ILayer

Callers 15

do_setupMethod · 0.85
block_mixed_5bMethod · 0.85
block_mixed_6aMethod · 0.85
block_mixed_7aMethod · 0.85
block35_repeatMethod · 0.85
block17_repeatMethod · 0.85
block8_repeatMethod · 0.85
do_setupMethod · 0.85
create_graph_floatMethod · 0.85
create_graph_qasymmMethod · 0.85
get_dwsc_node_floatMethod · 0.85
get_dwsc_node_qasymmMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected