23.08
|
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();
89 const auto& backendCapability = capabilities.
GetOption(i);
90 if (capability.
GetName() == backendCapability.GetName())
92 if (capability.
GetValue().
IsBool() && backendCapability.GetValue().IsBool())
94 return capability.
GetValue().
AsBool() == backendCapability.GetValue().AsBool();
96 else if (capability.
GetValue().
IsFloat() && backendCapability.GetValue().IsFloat())
98 return capability.
GetValue().
AsFloat() == backendCapability.GetValue().AsFloat();
100 else if (capability.
GetValue().
IsInt() && backendCapability.GetValue().IsInt())
102 return capability.
GetValue().
AsInt() == backendCapability.GetValue().AsInt();
104 else if (capability.
GetValue().
IsString() && backendCapability.GetValue().IsString())
106 return capability.
GetValue().
AsString() == backendCapability.GetValue().AsString();
120 if (backendRegistry.IsBackendRegistered(backend))
122 auto factoryFunc = backendRegistry.GetFactory(backend);
123 auto backendObject = factoryFunc();
124 auto capabilities = backendObject->GetCapabilities();
133 if (backendRegistry.IsBackendRegistered(backend))
135 auto factoryFunc = backendRegistry.GetFactory(backend);
136 auto backendObject = factoryFunc();
137 return backendObject->GetNumberOfCacheFiles();
166 reasonIfUnsupported);
181 reasonIfUnsupported);
196 reasonIfUnsupported);
212 reasonIfUnsupported);
224 TensorInfos infos{input, output, mean, var, beta, gamma};
231 reasonIfUnsupported);
246 reasonIfUnsupported);
260 reasonIfUnsupported);
275 reasonIfUnsupported);
291 reasonIfUnsupported);
302 infos.push_back(*inputInfo);
304 infos.push_back(output);
311 reasonIfUnsupported);
324 reasonIfUnsupported);
338 reasonIfUnsupported);
352 reasonIfUnsupported);
363 TensorInfos infos{input, output, weights, biasesVal};
369 if (!capability.
has_value() || capability.
value().GetValue().AsBool() ==
false)
375 reasonIfUnsupported.
value() =
376 "Backend is not capable of supporting dynamic weights (NonConstWeights) and "
377 "Convolution2d weights are set as dynamic (non constant). ";
385 reasonIfUnsupported.
value() =
386 "Backend is not capable of supporting dynamic biases (NonConstWeights) and "
387 "Convolution2d biases are set as dynamic (non constant). ";
394 ARMNN_LOG(
warning) <<
"The backend makes use of a deprecated interface to read constant tensors. "
395 "If you are a backend developer please find more information in our "
396 "doxygen documentation on github https://github.com/ARM-software/armnn "
397 "under the keyword 'ConstTensorsAsInputs'.";
406 reasonIfUnsupported);
417 TensorInfos infos{input, output, weights, biasesVal};
424 reasonIfUnsupported);
438 reasonIfUnsupported);
453 reasonIfUnsupported);
465 TensorInfos infos{input, output, weights, biasesVal};
471 if (!capability.
has_value() || capability.
value().GetValue().AsBool() ==
false)
477 reasonIfUnsupported.
value() =
478 "Backend is not capable of supporting dynamic weights (NonConstWeights) and "
479 "DepthwiseConvolution2d weights are set as dynamic (non constant). ";
487 reasonIfUnsupported.
value() =
488 "Backend is not capable of supporting dynamic biases (NonConstWeights) and "
489 "DepthwiseConvolution2d biases are set as dynamic (non constant). ";
495 ARMNN_LOG(
warning) <<
"The backend makes use of a deprecated interface to read constant tensors. "
496 "If you are a backend developer please find more information in our "
497 "doxygen documentation on github https://github.com/ARM-software/armnn "
498 "under the keyword 'ConstTensorsAsInputs'.";
507 reasonIfUnsupported);
521 reasonIfUnsupported);
534 TensorInfos infos{boxEncodings, scores, anchors, detectionBoxes, detectionClasses, detectionScores, numDetections};
541 reasonIfUnsupported);
553 TensorInfos infos{input, output, weights, biasesVal};
559 if (!capability.
has_value() || capability.
value().GetValue().AsBool() ==
false)
565 reasonIfUnsupported.
value() =
566 "Backend is not capable of supporting dynamic weights (NonConstWeights) and "
567 "DilatedDepthwiseConvolution2d weights are set as dynamic (non constant). ";
575 reasonIfUnsupported.
value() =
576 "Backend is not capable of supporting dynamic biases (NonConstWeights) and "
577 "DilatedDepthwiseConvolution2d biases are set as dynamic (non constant). ";
583 ARMNN_LOG(
warning) <<
"The backend makes use of a deprecated interface to read constant tensors. "
584 "If you are a backend developer please find more information in our "
585 "doxygen documentation on github https://github.com/ARM-software/armnn "
586 "under the keyword 'ConstTensorsAsInputs'.";
595 reasonIfUnsupported);
610 reasonIfUnsupported);
626 reasonIfUnsupported);
641 reasonIfUnsupported);
655 reasonIfUnsupported);
670 reasonIfUnsupported);
684 reasonIfUnsupported);
700 if (!capability.
has_value() || capability.
value().GetValue().AsBool() ==
false)
706 reasonIfUnsupported.
value() =
707 "Backend is not capable of supporting dynamic weights (NonConstWeights) and "
708 "FullyConnected descriptor indicates that weights are dynamic (non constant). ";
716 reasonIfUnsupported.
value() =
717 "Backend is not capable of supporting dynamic weights (NonConstWeights) and "
718 "FullyConnected weights are set as dynamic (non constant). ";
727 reasonIfUnsupported.
value() =
728 "Backend is not capable of supporting dynamic biases (NonConstWeights) and "
729 "FullyConnected biases are set as dynamic (non constant). ";
736 ARMNN_LOG(
warning) <<
"The backend makes use of a deprecated interface to read constant tensors. "
737 "If you are a backend developer please find more information in our "
738 "doxygen documentation on github https://github.com/ARM-software/armnn "
739 "under the keyword 'ConstTensorsAsInputs'.";
748 reasonIfUnsupported);
764 reasonIfUnsupported);
779 reasonIfUnsupported);
792 reasonIfUnsupported);
808 reasonIfUnsupported);
823 reasonIfUnsupported);
839 reasonIfUnsupported);
854 reasonIfUnsupported);
869 reasonIfUnsupported);
883 TensorInfos infos{input, outputStateIn, cellStateIn, scratchBuffer, outputStateOut, cellStateOut, output};
890 reasonIfUnsupported);
905 reasonIfUnsupported);
920 reasonIfUnsupported);
934 reasonIfUnsupported);
948 reasonIfUnsupported);
963 reasonIfUnsupported);
978 reasonIfUnsupported);
993 reasonIfUnsupported);
1008 reasonIfUnsupported);
1021 reasonIfUnsupported);
1036 reasonIfUnsupported);
1051 reasonIfUnsupported);
1066 reasonIfUnsupported);
1081 reasonIfUnsupported);
1095 reasonIfUnsupported);
1110 reasonIfUnsupported);
1124 reasonIfUnsupported);
1137 TensorInfos infos{input, previousOutputIn, previousCellStateIn, outputStateOut, cellStateOut, output};
1144 reasonIfUnsupported);
1155 TensorInfos infos{input, previousCellStateIn, previousOutputIn, cellStateOut, output};
1162 reasonIfUnsupported);
1176 reasonIfUnsupported);
1191 reasonIfUnsupported);
1206 reasonIfUnsupported);
1221 reasonIfUnsupported);
1236 reasonIfUnsupported);
1250 reasonIfUnsupported);
1265 reasonIfUnsupported);
1280 reasonIfUnsupported);
1295 reasonIfUnsupported);
1310 reasonIfUnsupported);
1314 const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
1321 infos.push_back(outInfo);
1329 reasonIfUnsupported);
1340 infos.push_back(*inputInfo);
1342 infos.push_back(output);
1349 reasonIfUnsupported);
1353 const std::vector<const TensorInfo*>& outputs,
1360 infos.push_back(*inputInfo);
1364 infos.push_back(*outputInfo);
1372 reasonIfUnsupported);
1388 reasonIfUnsupported);
1403 reasonIfUnsupported);
1412 TensorInfos infos{input0, input1, output0, output1};
1419 reasonIfUnsupported);
1434 reasonIfUnsupported);
1446 TensorInfos infos{input, output, weights, biasesVal};
1453 reasonIfUnsupported);
1468 reasonIfUnsupported);
1481 TensorInfos infos{input, outputStateIn, cellStateIn, outputStateOut, cellStateOut, output};
1488 reasonIfUnsupported);
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
bool m_ConstantWeights
Enable/disable constant weights and biases.
A ViewsDescriptor for the SplitterLayer.
An ActivationDescriptor for the ActivationLayer.
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A FullyConnectedDescriptor for the FullyConnectedLayer.
bool IsStackSupported(const std::vector< const TensorInfo * > &inputs, const TensorInfo &output, const StackDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A QLstmDescriptor for the QLstmLayer.
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())
bool IsOutputSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
std::string GetName() const
bool IsMemImportSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool m_BiasEnabled
Enable/disable bias.
bool IsMultiplicationSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A Pooling3dDescriptor for the Pooling3dLayer.
bool IsTransposeConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A ResizeDescriptor for the ResizeLayer.
An ArgMinMaxDescriptor for ArgMinMaxLayer.
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
bool IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A GatherDescriptor for the GatherLayer.
bool IsShapeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A L2NormalizationDescriptor for the L2NormalizationLayer.
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, 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())
A NormalizationDescriptor for the NormalizationLayer.
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A ChannelShuffleDescriptor for the ChannelShuffle operator.
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsReverseV2Supported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsLogicalBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const LogicalBinaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsGatherNdSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsElementwiseBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ElementwiseBinaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A StackDescriptor for the StackLayer.
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
LayerSupportHandle GetILayerSupportByBackendId(const armnn::BackendId &backend)
Convenience function to retrieve the ILayerSupportHandle for a backend.
bool IsUnsignedInt() const
bool IsInputSupported(const TensorInfo &input, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
std::vector< TensorInfo > TensorInfos
bool IsL2NormalizationSupported(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsDebugSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsBatchToSpaceNdSupported(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
#define ARMNN_LOG(severity)
A ElementwiseBinaryDescriptor for the ElementwiseBinaryLayer.
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ComparisonDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, 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 m_BiasEnabled
Enable/disable bias.
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A PadDescriptor for the PadLayer.
A TransposeDescriptor for the TransposeLayer.
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
A SliceDescriptor for the SliceLayer.
bool IsBatchMatMulSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const BatchMatMulDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
BackendRegistry & BackendRegistryInstance()
bool m_BiasEnabled
Enable/disable bias.
A ReshapeDescriptor for the ReshapeLayer.
bool IsRankSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsMemCopySupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsTileSupported(const TensorInfo &input, const TensorInfo &output, const TileDescriptor &descriptor, 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 AsBool() const
Value getters.
A PermuteDescriptor for the PermuteLayer.
A BatchMatMulDescriptor for the BatchMatMul operator.
bool IsCastSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
A Convolution3dDescriptor for the Convolution3dLayer.
Base class for all descriptors.
bool IsBackendRegistered(const BackendId &id) const
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsPooling3dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling3dDescriptor &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.
unsigned int AsUnsignedInt() const
bool IsConcatSupported(const std::vector< const TensorInfo * > inputs, const TensorInfo &output, const OriginsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
FactoryFunction GetFactory(const BackendId &id) const
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
bool IsLogicalUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A Convolution2dDescriptor for the Convolution2dLayer.
bool IsFakeQuantizationSupported(const TensorInfo &input, const FakeQuantizationDescriptor &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())
A ComparisonDescriptor for the ComparisonLayer.
std::string AsString() const
A FillDescriptor for the FillLayer.
bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, 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())
const BackendOption & GetOption(size_t idx) const
A StandInDescriptor for the StandIn layer.
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Struct for the users to pass backend specific options.
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
An LstmDescriptor for the LstmLayer.
A StridedSliceDescriptor for the StridedSliceLayer.
bool IsBackendRegistered() const
bool IsPreCompiledSupported(const TensorInfo &input, const PreCompiledDescriptor &descriptor, 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 LogicalBinaryDescriptor for the LogicalBinaryLayer.
bool IsBool() const
Type getters.
bool IsChannelShuffleSupported(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
@ UnidirectionalSequenceLstm
size_t GetOptionCount() const noexcept
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
An OriginsDescriptor for the ConcatLayer.
unsigned int GetNumberOfCacheFiles(const armnn::BackendId &backend)
Returns the number of cached files if backend supports caching.
Copyright (c) 2021 ARM Limited and Contributors.
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, 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())
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsReshapeSupported(const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A PreCompiledDescriptor for the PreCompiledLayer.
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())
A Pooling2dDescriptor for the Pooling2dLayer.
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
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())
A ReduceDescriptor for the REDUCE operators.
bool IsSwitchSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output0, const TensorInfo &output1, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A FakeQuantizationDescriptor for the FakeQuantizationLayer.
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, 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())
A MeanDescriptor for the MeanLayer.
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A SoftmaxDescriptor for the SoftmaxLayer.
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
bool has_value() const noexcept
bool IsActivationSupported(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
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...
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
bool HasMatchingCapability(const BackendOptions::BackendOption &capability, const BackendCapabilities &capabilities)
Convenience function to check if a given capability matches a capability in a BackendCapabilities str...