29 return CloneBase<FloorLayer>(graph,
GetName());
38 BOOST_ASSERT(inferredShapes.size() == 1);
40 ConditionalThrowIfNotEqual<LayerValidationException>(
41 "FloorLayer: TensorShape set on OutputSlot[0] does not match the inferred shape.",
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
const char * GetName() const override
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
virtual const TensorInfo & GetTensorInfo() const =0
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *LayerCreateWorkload.
This layer represents a floor operation.
virtual void VisitFloorLayer(const IConnectableLayer *layer, const char *name=nullptr)=0
FloorLayer(const char *name)
void VerifyLayerConnections(unsigned int expectedConnections, const CheckLocation &location) const
void Accept(ILayerVisitor &visitor) const override
void ValidateTensorShapesFromInputs() override
FloorLayer * Clone(Graph &graph) const override
virtual std::unique_ptr< IWorkload > CreateFloor(const FloorQueueDescriptor &descriptor, const WorkloadInfo &info) const
const TensorShape & GetShape() const
const TensorInfo & GetTensorInfo() const override
const OutputSlot & GetOutputSlot(unsigned int index=0) const override
const InputSlot & GetInputSlot(unsigned int index) const override