12 class ScopedCpuTensorHandle;
19 std::unique_ptr<ScopedCpuTensorHandle>
m_Weight;
21 std::unique_ptr<ScopedCpuTensorHandle>
m_Bias;
41 std::vector<TensorShape>
InferOutputShapes(
const std::vector<TensorShape>& inputShapes)
const override;
void Accept(ILayerVisitor &visitor) const override
DepthwiseConvolution2dLayer * Clone(Graph &graph) const override
This layer represents a depthwise convolution 2d operation.
std::unique_ptr< ScopedCpuTensorHandle > m_Bias
A unique pointer to store Bias values.
void ValidateTensorShapesFromInputs() override
std::unique_ptr< ScopedCpuTensorHandle > m_Weight
A unique pointer to store Weight values.
DepthwiseConvolution2dLayer(const DepthwiseConvolution2dDescriptor ¶m, const char *name)
std::vector< std::reference_wrapper< std::unique_ptr< ScopedCpuTensorHandle > >> ConstantTensors
void SerializeLayerParameters(ParameterStringifyFunction &fn) const override
~DepthwiseConvolution2dLayer()=default
Default destructor.
ConstantTensors GetConstantTensorsByRef() override
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
std::function< void(const std::string &name, const std::string &value)> ParameterStringifyFunction
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.