34 std::vector<TensorShape>
InferOutputShapes(
const std::vector<TensorShape>& inputShapes)
const override;
42 m_Param.
m_TargetShape == boost::polymorphic_downcast<const ReshapeLayer*>(&other)->m_Param.m_TargetShape;
LayerType GetType() const
bool IsEqual(const Layer &other) const
void ValidateTensorShapesFromInputs() override
This layer represents a reshape operation.
void Accept(ILayerVisitor &visitor) const override
ReshapeLayer * Clone(Graph &graph) const override
A ReshapeDescriptor for the ReshapeLayer.
TensorShape m_TargetShape
Target shape value.
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
ReshapeLayer(const ReshapeDescriptor &desc, const char *name)
ReshapeDescriptor m_Param
The parameters for the layer (not including tensor-valued weights etc.).
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
~ReshapeLayer()=default
Default destructor.