Activation Layer */
| 120 | |
| 121 | /** Activation Layer */ |
| 122 | class ActivationLayer final : public ILayer |
| 123 | { |
| 124 | public: |
| 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 | |
| 143 | private: |
| 144 | ActivationLayerInfo _act_info; |
| 145 | const QuantizationInfo _out_quant_info; |
| 146 | }; |
| 147 | |
| 148 | /** ArgMinMax Layer */ |
| 149 | class ArgMinMaxLayer final : public ILayer |
no outgoing calls
no test coverage detected