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

Class ReshapeLayer

arm_compute/graph/frontend/Layers.h:1198–1218  ·  view source on GitHub ↗

Reshape Layer */

Source from the content-addressed store, hash-verified

1196
1197/** Reshape Layer */
1198class ReshapeLayer final : public ILayer
1199{
1200public:
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
1216private:
1217 TensorShape _shape;
1218};
1219
1220/** Resize Layer */
1221class ResizeLayer final : public ILayer

Callers 7

do_setupMethod · 0.85
do_setupMethod · 0.85
do_setupMethod · 0.85
do_setupMethod · 0.85
create_graph_floatMethod · 0.85
get_node_C_qasymmMethod · 0.85
create_graph_qasymmMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected