23.02
|
Go to the documentation of this file.
32 auto factoryFunc = backendRegistry.
GetFactory(backend);
33 auto backendObject = factoryFunc();
42 const auto& capability = capabilities.
GetOption(i);
43 if (backendCapabilityName == capability.GetName())
55 if (backendRegistry.IsBackendRegistered(backend))
57 auto factoryFunc = backendRegistry.GetFactory(backend);
58 auto backendObject = factoryFunc();
59 auto capabilities = backendObject->GetCapabilities();
79 const auto& backendCapability = capabilities.
GetOption(i);
80 if (capability.
GetName() == backendCapability.GetName())
82 if (capability.
GetValue().
IsBool() && backendCapability.GetValue().IsBool())
84 return capability.
GetValue().
AsBool() == backendCapability.GetValue().AsBool();
86 else if (capability.
GetValue().
IsFloat() && backendCapability.GetValue().IsFloat())
88 return capability.
GetValue().
AsFloat() == backendCapability.GetValue().AsFloat();
90 else if (capability.
GetValue().
IsInt() && backendCapability.GetValue().IsInt())
92 return capability.
GetValue().
AsInt() == backendCapability.GetValue().AsInt();
94 else if (capability.
GetValue().
IsString() && backendCapability.GetValue().IsString())
96 return capability.
GetValue().
AsString() == backendCapability.GetValue().AsString();
110 if (backendRegistry.IsBackendRegistered(backend))
112 auto factoryFunc = backendRegistry.GetFactory(backend);
113 auto backendObject = factoryFunc();
114 auto capabilities = backendObject->GetCapabilities();
123 if (backendRegistry.IsBackendRegistered(backend))
125 auto factoryFunc = backendRegistry.GetFactory(backend);
126 auto backendObject = factoryFunc();
127 return backendObject->GetNumberOfCacheFiles();
156 reasonIfUnsupported);
171 reasonIfUnsupported);
186 reasonIfUnsupported);
202 reasonIfUnsupported);
214 TensorInfos infos{input, output, mean, var, beta, gamma};
221 reasonIfUnsupported);
236 reasonIfUnsupported);
250 reasonIfUnsupported);
265 reasonIfUnsupported);
281 reasonIfUnsupported);
292 infos.push_back(*inputInfo);
294 infos.push_back(output);
301 reasonIfUnsupported);
314 reasonIfUnsupported);
328 reasonIfUnsupported);
342 reasonIfUnsupported);
353 TensorInfos infos{input, output, weights, biasesVal};
359 if (!capability.
has_value() || capability.
value().GetValue().AsBool() ==
false)
365 reasonIfUnsupported.
value() =
366 "Backend is not capable of supporting dynamic weights (NonConstWeights) and "
367 "Convolution2d weights are set as dynamic (non constant). ";
375 reasonIfUnsupported.
value() =
376 "Backend is not capable of supporting dynamic biases (NonConstWeights) and "
377 "Convolution2d biases are set as dynamic (non constant). ";
384 ARMNN_LOG(
warning) <<
"The backend makes use of a deprecated interface to read constant tensors. "
385 "If you are a backend developer please find more information in our "
386 "doxygen documentation on github https://github.com/ARM-software/armnn "
387 "under the keyword 'ConstTensorsAsInputs'.";
396 reasonIfUnsupported);
407 TensorInfos infos{input, output, weights, biasesVal};
414 reasonIfUnsupported);
428 reasonIfUnsupported);
443 reasonIfUnsupported);
455 TensorInfos infos{input, output, weights, biasesVal};
461 if (!capability.
has_value() || capability.
value().GetValue().AsBool() ==
false)
467 reasonIfUnsupported.
value() =
468 "Backend is not capable of supporting dynamic weights (NonConstWeights) and "
469 "DepthwiseConvolution2d weights are set as dynamic (non constant). ";
477 reasonIfUnsupported.
value() =
478 "Backend is not capable of supporting dynamic biases (NonConstWeights) and "
479 "DepthwiseConvolution2d biases are set as dynamic (non constant). ";
485 ARMNN_LOG(
warning) <<
"The backend makes use of a deprecated interface to read constant tensors. "
486 "If you are a backend developer please find more information in our "
487 "doxygen documentation on github https://github.com/ARM-software/armnn "
488 "under the keyword 'ConstTensorsAsInputs'.";
497 reasonIfUnsupported);
511 reasonIfUnsupported);
524 TensorInfos infos{boxEncodings, scores, anchors, detectionBoxes, detectionClasses, detectionScores, numDetections};
531 reasonIfUnsupported);
543 TensorInfos infos{input, output, weights, biasesVal};
549 if (!capability.
has_value() || capability.
value().GetValue().AsBool() ==
false)
555 reasonIfUnsupported.
value() =
556 "Backend is not capable of supporting dynamic weights (NonConstWeights) and "
557 "DilatedDepthwiseConvolution2d weights are set as dynamic (non constant). ";
565 reasonIfUnsupported.
value() =
566 "Backend is not capable of supporting dynamic biases (NonConstWeights) and "
567 "DilatedDepthwiseConvolution2d biases are set as dynamic (non constant). ";
573 ARMNN_LOG(
warning) <<
"The backend makes use of a deprecated interface to read constant tensors. "
574 "If you are a backend developer please find more information in our "
575 "doxygen documentation on github https://github.com/ARM-software/armnn "
576 "under the keyword 'ConstTensorsAsInputs'.";
585 reasonIfUnsupported);
600 reasonIfUnsupported);
615 reasonIfUnsupported);
629 reasonIfUnsupported);
644 reasonIfUnsupported);
658 reasonIfUnsupported);
674 if (!capability.
has_value() || capability.
value().GetValue().AsBool() ==
false)
680 reasonIfUnsupported.
value() =
681 "Backend is not capable of supporting dynamic weights (NonConstWeights) and "
682 "FullyConnected descriptor indicates that weights are dynamic (non constant). ";
690 reasonIfUnsupported.
value() =
691 "Backend is not capable of supporting dynamic weights (NonConstWeights) and "
692 "FullyConnected weights are set as dynamic (non constant). ";
701 reasonIfUnsupported.
value() =
702 "Backend is not capable of supporting dynamic biases (NonConstWeights) and "
703 "FullyConnected biases are set as dynamic (non constant). ";
710 ARMNN_LOG(
warning) <<
"The backend makes use of a deprecated interface to read constant tensors. "
711 "If you are a backend developer please find more information in our "
712 "doxygen documentation on github https://github.com/ARM-software/armnn "
713 "under the keyword 'ConstTensorsAsInputs'.";
722 reasonIfUnsupported);
738 reasonIfUnsupported);
753 reasonIfUnsupported);
766 reasonIfUnsupported);
782 reasonIfUnsupported);
797 reasonIfUnsupported);
813 reasonIfUnsupported);
828 reasonIfUnsupported);
843 reasonIfUnsupported);
857 TensorInfos infos{input, outputStateIn, cellStateIn, scratchBuffer, outputStateOut, cellStateOut, output};
864 reasonIfUnsupported);
879 reasonIfUnsupported);
894 reasonIfUnsupported);
908 reasonIfUnsupported);
922 reasonIfUnsupported);
937 reasonIfUnsupported);
952 reasonIfUnsupported);
967 reasonIfUnsupported);
982 reasonIfUnsupported);
995 reasonIfUnsupported);
1010 reasonIfUnsupported);
1025 reasonIfUnsupported);
1040 reasonIfUnsupported);
1055 reasonIfUnsupported);
1069 reasonIfUnsupported);
1084 reasonIfUnsupported);
1098 reasonIfUnsupported);
1111 TensorInfos infos{input, previousOutputIn, previousCellStateIn, outputStateOut, cellStateOut, output};
1118 reasonIfUnsupported);
1129 TensorInfos infos{input, previousCellStateIn, previousOutputIn, cellStateOut, output};
1136 reasonIfUnsupported);
1150 reasonIfUnsupported);
1165 reasonIfUnsupported);
1180 reasonIfUnsupported);
1195 reasonIfUnsupported);
1209 reasonIfUnsupported);
1224 reasonIfUnsupported);
1239 reasonIfUnsupported);
1254 reasonIfUnsupported);
1269 reasonIfUnsupported);
1273 const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
1280 infos.push_back(outInfo);
1288 reasonIfUnsupported);
1299 infos.push_back(*inputInfo);
1301 infos.push_back(output);
1308 reasonIfUnsupported);
1312 const std::vector<const TensorInfo*>& outputs,
1319 infos.push_back(*inputInfo);
1323 infos.push_back(*outputInfo);
1331 reasonIfUnsupported);
1347 reasonIfUnsupported);
1362 reasonIfUnsupported);
1371 TensorInfos infos{input0, input1, output0, output1};
1378 reasonIfUnsupported);
1390 TensorInfos infos{input, output, weights, biasesVal};
1397 reasonIfUnsupported);
1412 reasonIfUnsupported);
1425 TensorInfos infos{input, outputStateIn, cellStateIn, outputStateOut, cellStateOut, output};
1432 reasonIfUnsupported);
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool m_BiasEnabled
Enable/disable bias.
BackendRegistry & BackendRegistryInstance()
size_t GetOptionCount() const noexcept
bool IsShapeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsLogicalUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool m_BiasEnabled
Enable/disable bias.
A GatherDescriptor for the GatherLayer.
A NormalizationDescriptor for the NormalizationLayer.
A TransposeDescriptor for the TransposeLayer.
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsReshapeSupported(const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsBatchNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &mean, const TensorInfo &var, const TensorInfo &beta, const TensorInfo &gamma, const BatchNormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
A PadDescriptor for the PadLayer.
bool IsSwitchSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output0, const TensorInfo &output1, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A SoftmaxDescriptor for the SoftmaxLayer.
A StackDescriptor for the StackLayer.
bool IsOutputSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A SliceDescriptor for the SliceLayer.
bool IsGatherNdSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsConvolution3dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution3dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
An ActivationDescriptor for the ActivationLayer.
bool IsFakeQuantizationSupported(const TensorInfo &input, const FakeQuantizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
An LstmDescriptor for the LstmLayer.
bool IsDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A FullyConnectedDescriptor for the FullyConnectedLayer.
std::string AsString() const
FactoryFunction GetFactory(const BackendId &id) const
bool IsPooling3dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling3dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A BatchMatMulDescriptor for the BatchMatMul operator.
A ResizeDescriptor for the ResizeLayer.
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool m_ConstantWeights
Enable/disable constant weights and biases.
Optional< const BackendOptions::BackendOption > GetCapability(const std::string &backendCapabilityName, const BackendCapabilities &capabilities)
Returns a BackendCapability if the backend lists the capability The BackendCapability must then be in...
A StridedSliceDescriptor for the StridedSliceLayer.
bool IsDebugSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A Pooling3dDescriptor for the Pooling3dLayer.
A ReduceDescriptor for the REDUCE operators.
Struct for the users to pass backend specific options.
bool IsL2NormalizationSupported(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A ComparisonDescriptor for the ComparisonLayer.
bool IsPreCompiledSupported(const TensorInfo &input, const PreCompiledDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A StandInDescriptor for the StandIn layer.
A ViewsDescriptor for the SplitterLayer.
bool m_BiasEnabled
Enable/disable bias.
bool IsMultiplicationSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsBool() const
Type getters.
A PreCompiledDescriptor for the PreCompiledLayer.
bool IsDetectionPostProcessSupported(const TensorInfo &boxEncodings, const TensorInfo &scores, const TensorInfo &anchors, const TensorInfo &detectionBoxes, const TensorInfo &detectionClasses, const TensorInfo &detectionScores, const TensorInfo &numDetections, const DetectionPostProcessDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
#define ARMNN_LOG(severity)
unsigned int GetNumberOfCacheFiles(const armnn::BackendId &backend)
Returns the number of cached files if backend supports caching.
bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Copyright (c) 2021 ARM Limited and Contributors.
std::string GetName() const
bool IsUnsignedInt() const
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
bool IsBatchToSpaceNdSupported(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
bool IsCastSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsUnidirectionalSequenceLstmSupported(const TensorInfo &input, const TensorInfo &outputStateIn, const TensorInfo &cellStateIn, const TensorInfo &outputStateOut, const TensorInfo &cellStateOut, const TensorInfo &output, const LstmDescriptor &descriptor, const LstmInputParamsInfo ¶msInfo, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsActivationSupported(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A FillDescriptor for the FillLayer.
bool IsMemCopySupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsStandInSupported(const std::vector< const TensorInfo * > &inputs, const std::vector< const TensorInfo * > &outputs, const StandInDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsTransposeConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsQuantizedLstmSupported(const TensorInfo &input, const TensorInfo &previousCellStateIn, const TensorInfo &previousOutputIn, const TensorInfo &cellStateOut, const TensorInfo &output, const QuantizedLstmInputParamsInfo ¶msInfo, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
const BackendOption & GetOption(size_t idx) const
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
A MeanDescriptor for the MeanLayer.
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
@ UnidirectionalSequenceLstm
bool IsBatchMatMulSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const BatchMatMulDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A L2NormalizationDescriptor for the L2NormalizationLayer.
A ChannelShuffleDescriptor for the ChannelShuffle operator.
A Convolution3dDescriptor for the Convolution3dLayer.
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ComparisonDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
unsigned int AsUnsignedInt() const
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A Convolution2dDescriptor for the Convolution2dLayer.
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
bool IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A QLstmDescriptor for the QLstmLayer.
bool has_value() const noexcept
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsBackendRegistered(const BackendId &id) const
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsChannelShuffleSupported(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsRankSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool AsBool() const
Value getters.
bool IsConstantSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsQLstmSupported(const TensorInfo &input, const TensorInfo &previousOutputIn, const TensorInfo &previousCellStateIn, const TensorInfo &outputStateOut, const TensorInfo &cellStateOut, const TensorInfo &output, const QLstmDescriptor &descriptor, const LstmInputParamsInfo ¶msInfo, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Base class for all descriptors.
An OriginsDescriptor for the ConcatLayer.
A ReshapeDescriptor for the ReshapeLayer.
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A PermuteDescriptor for the PermuteLayer.
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
bool IsConcatSupported(const std::vector< const TensorInfo * > inputs, const TensorInfo &output, const OriginsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsSplitterSupported(const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, const ViewsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A Pooling2dDescriptor for the Pooling2dLayer.
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
std::vector< TensorInfo > TensorInfos
LayerSupportHandle GetILayerSupportByBackendId(const armnn::BackendId &backend)
Convenience function to retrieve the ILayerSupportHandle for a backend.
An ArgMinMaxDescriptor for ArgMinMaxLayer.
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A FakeQuantizationDescriptor for the FakeQuantizationLayer.
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsMemImportSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsBackendRegistered() const
bool IsStackSupported(const std::vector< const TensorInfo * > &inputs, const TensorInfo &output, const StackDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsInputSupported(const TensorInfo &input, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsLstmSupported(const TensorInfo &input, const TensorInfo &outputStateIn, const TensorInfo &cellStateIn, const TensorInfo &scratchBuffer, const TensorInfo &outputStateOut, const TensorInfo &cellStateOut, const TensorInfo &output, const LstmDescriptor &descriptor, const LstmInputParamsInfo ¶msInfo, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
bool IsLogicalBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const LogicalBinaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsFullyConnectedSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &weights, const TensorInfo &biases, const FullyConnectedDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsMergeSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool HasCapability(const std::string &name, const BackendCapabilities &capabilities)
Convenience function to check if a capability exists in a BackendCapabilites struct.
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.