34 boost::ignore_unused(inputShapes);
44 BOOST_ASSERT(inferredShapes.size() == 1);
46 ConditionalThrowIfNotEqual<LayerValidationException>(
47 "ReshapeLayer: TensorShape set on OutputSlot[0] does not match the inferred shape.",
const char * GetName() const override
void ValidateTensorShapesFromInputs() override
This layer represents a reshape operation.
virtual void VisitReshapeLayer(const IConnectableLayer *layer, const ReshapeDescriptor &reshapeDescriptor, const char *name=nullptr)=0
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)
const ReshapeDescriptor & GetParameters() const
ReshapeDescriptor m_Param
The parameters for the layer (not including tensor-valued weights etc.).
void VerifyLayerConnections(unsigned int expectedConnections, const CheckLocation &location) const
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *LayerCreateWorkload.
virtual std::unique_ptr< IWorkload > CreateReshape(const ReshapeQueueDescriptor &descriptor, const WorkloadInfo &info) const
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
const TensorShape & GetShape() const
const TensorInfo & GetTensorInfo() const override
const OutputSlot & GetOutputSlot(unsigned int index=0) const override