37 bool supported =
true;
40 std::array<DataType,3> supportedTypes =
48 "EthosnReference Convolution2d: input is not a supported type.");
51 "EthosnReference Convolution2d: output is not a supported type.");
54 "EthosnReference Convolution2d: input and output types mismatched.");
57 "EthosnReference Convolution2d: weights is not a supported type.");
60 "EthosnReference Convolution2d: input and weights types mismatched.");
64 std::array<DataType,1> biasesSupportedTypes =
70 "EthosnReference Convolution2d: biases is not a supported type.");
84 bool supported =
true;
88 std::array<DataType,3> supportedTypes =
96 "EthosnReference DepthwiseConvolution2d: input is not a supported type.");
99 "EthosnReference DepthwiseConvolution2d: output is not a supported type.");
102 "EthosnReference DepthwiseConvolution2d: input and output types mismatched.");
105 "EthosnReference DepthwiseConvolution2d: weights is not a supported type.");
108 "EthosnReference DepthwiseConvolution2d: input and weights types mismatched.");
112 std::array<DataType,1> biasesSupportedTypes =
118 "EthosnReference DepthwiseConvolution2d: biases is not a supported type.");
134 bool supported =
true;
138 std::array<DataType,3> supportedTypes =
146 "EthosnReference TransposeConvolution2d: input is not a supported type.");
149 "EthosnReference TransposeConvolution2d: output is not a supported type.");
152 "EthosnReference TransposeConvolution2d: input and output types mismatched.");
155 "EthosnReference TransposeConvolution2d: weights is not a supported type.");
158 "EthosnReference TransposeConvolution2d: input and weights types mismatched.");
162 std::array<DataType,1> biasesSupportedTypes =
168 "EthosnReference TransposeConvolution2d: biases is not a supported type.");
181 bool supported =
true;
184 std::array<DataType,3> supportedTypes =
192 "EthosnReference Poolind2d: input is not a supported type.");
195 "EthosnReference Poolind2d: output is not a supported type.");
198 "EthosnReference Poolind2d: input and output types are mismatched.");
203 reasonIfUnsupported.
value() +=
"EthosnReference poolind2d: pooling algorithm is not supported.";
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
const TensorInfo & output
A Convolution2dDescriptor for the Convolution2dLayer.
const TensorInfo const ActivationDescriptor Optional< std::string & > reasonIfUnsupported
bool IsTransposeConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
Copyright (c) 2021 ARM Limited and Contributors.
void IgnoreUnused(Ts &&...)
const TensorInfo const ActivationDescriptor & descriptor
bool IsConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool has_value() const noexcept
bool IsDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
PoolingAlgorithm m_PoolType
The pooling algorithm to use (Max. Average, L2).
const TensorInfo const Convolution2dDescriptor const TensorInfo const Optional< TensorInfo > & biases
A Pooling2dDescriptor for the Pooling2dLayer.
bool CheckSupportRule(F rule, Optional< std::string &> reasonIfUnsupported, const char *reason)
const TensorInfo const Convolution2dDescriptor const TensorInfo & weights
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.