Reshape Layer */
| 1196 | |
| 1197 | /** Reshape Layer */ |
| 1198 | class ReshapeLayer final : public ILayer |
| 1199 | { |
| 1200 | public: |
| 1201 | /** Construct a reshape layer. |
| 1202 | * |
| 1203 | * @param[in] shape Target shape. |
| 1204 | */ |
| 1205 | ReshapeLayer(TensorShape shape) : _shape(shape) |
| 1206 | { |
| 1207 | } |
| 1208 | |
| 1209 | NodeID create_layer(IStream &s) override |
| 1210 | { |
| 1211 | NodeParams common_params = {name(), s.hints().target_hint}; |
| 1212 | NodeIdxPair input = {s.tail_node(), 0}; |
| 1213 | return GraphBuilder::add_reshape_node(s.graph(), common_params, input, _shape); |
| 1214 | } |
| 1215 | |
| 1216 | private: |
| 1217 | TensorShape _shape; |
| 1218 | }; |
| 1219 | |
| 1220 | /** Resize Layer */ |
| 1221 | class ResizeLayer final : public ILayer |
no outgoing calls
no test coverage detected