37 std::vector<TensorShape>
InferOutputShapes(
const std::vector<TensorShape>& inputShapes)
const override;
LayerType GetType() const override
Returns the armnn::LayerType of this layer.
LayerWithParameters(unsigned int numInputSlots, unsigned int numOutputSlots, LayerType type, const ReshapeDescriptor ¶m, const char *name)
ReshapeDescriptor m_Param
ReshapeLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
ReshapeLayer(const ReshapeDescriptor &desc, const char *name)
Constructor to create a ReshapeLayer.
bool IsEqual(const Layer &other) const
Indicates if the other layer received is equal to this one.
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
By default returns inputShapes if the number of inputs are equal to number of outputs,...
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of ReshapeLayer.
~ReshapeLayer()=default
Default destructor.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the Reshape type.
Copyright (c) 2021 ARM Limited and Contributors.
DestType PolymorphicDowncast(SourceType *value)
Polymorphic downcast for build in pointers only.
A ReshapeDescriptor for the ReshapeLayer.