Class mediapipe::api2::InferenceCalculator
ClassList > mediapipe > api2 > InferenceCalculator
Inherits the following classes: mediapipe::api2::NodeIntf
Inherited by the following classes: mediapipe::api2::InferenceCalculatorCpu, mediapipe::api2::InferenceCalculatorGl, mediapipe::api2::InferenceCalculatorGlAdvanced, mediapipe::api2::InferenceCalculatorMetal, mediapipe::api2::InferenceCalculatorSelector, mediapipe::api2::InferenceCalculatorXnnpack
Public Static Attributes
Type | Name |
---|---|
constexpr SideInput< mediapipe::InferenceCalculatorOptions::Delegate >::Optional | kDelegate = /* multi line expression */ |
constexpr Input< Tensor >::Multiple | kInTensor = {"TENSOR"} |
constexpr Input< std::vector< Tensor > >::Optional | kInTensors = {"TENSORS"} |
constexpr Output< Tensor >::Multiple | kOutTensor = {"TENSOR"} |
constexpr Output< std::vector< Tensor > >::Optional | kOutTensors = {"TENSORS"} |
constexpr SideInput< tflite::ops::builtin::BuiltinOpResolver >::Optional | kSideInCustomOpResolver = {"CUSTOM\_OP\_RESOLVER"} |
constexpr SideInput< mediapipe::InferenceCalculatorOptions::InputOutputConfig >::Optional | kSideInIoMap = {"IO\_CONFIG"} |
constexpr SideInput< TfLiteModelPtr >::Optional | kSideInModel = {"MODEL"} |
constexpr SideInput< tflite::OpResolver >::Optional | kSideInOpResolver = /* multi line expression */ |
Public Functions
Type | Name |
---|---|
MEDIAPIPE_NODE_CONTRACT (kInTensors, kInTensor, kSideInCustomOpResolver, kSideInOpResolver, kSideInModel, kOutTensors, kOutTensor, kDelegate, kSideInIoMap) |
Protected Types
Type | Name |
---|---|
typedef std::unique_ptr< TfLiteOpaqueDelegate, std::function< void(TfLiteOpaqueDelegate *)> > | TfLiteDelegatePtr |
Protected Static Functions
Type | Name |
---|---|
absl::StatusOr< Packet< TfLiteModelPtr > > | GetModelAsPacket (CalculatorContext * cc) |
absl::StatusOr< Packet< tflite::OpResolver > > | GetOpResolverAsPacket (CalculatorContext * cc) |
absl::Status | TensorContractCheck (CalculatorContract * cc) |
void | WarnFeedbackTensorsUnsupported (CalculatorContract * cc) |
Public Static Attributes Documentation
variable kDelegate
constexpr SideInput<mediapipe::InferenceCalculatorOptions::Delegate>::Optional mediapipe::api2::InferenceCalculator::kDelegate;
variable kInTensor
constexpr Input<Tensor>::Multiple mediapipe::api2::InferenceCalculator::kInTensor;
variable kInTensors
constexpr Input<std::vector<Tensor>>::Optional mediapipe::api2::InferenceCalculator::kInTensors;
variable kOutTensor
constexpr Output<Tensor>::Multiple mediapipe::api2::InferenceCalculator::kOutTensor;
variable kOutTensors
constexpr Output<std::vector<Tensor>>::Optional mediapipe::api2::InferenceCalculator::kOutTensors;
variable kSideInCustomOpResolver
constexpr SideInput<tflite::ops::builtin::BuiltinOpResolver>::Optional mediapipe::api2::InferenceCalculator::kSideInCustomOpResolver;
variable kSideInIoMap
constexpr SideInput<mediapipe::InferenceCalculatorOptions::InputOutputConfig>::Optional mediapipe::api2::InferenceCalculator::kSideInIoMap;
variable kSideInModel
constexpr SideInput<TfLiteModelPtr>::Optional mediapipe::api2::InferenceCalculator::kSideInModel;
variable kSideInOpResolver
constexpr SideInput<tflite::OpResolver>::Optional mediapipe::api2::InferenceCalculator::kSideInOpResolver;
Public Functions Documentation
function MEDIAPIPE_NODE_CONTRACT
mediapipe::api2::InferenceCalculator::MEDIAPIPE_NODE_CONTRACT (
kInTensors,
kInTensor,
kSideInCustomOpResolver,
kSideInOpResolver,
kSideInModel,
kOutTensors,
kOutTensor,
kDelegate,
kSideInIoMap
)
Protected Types Documentation
typedef TfLiteDelegatePtr
using mediapipe::api2::InferenceCalculator::TfLiteDelegatePtr = std::unique_ptr<TfLiteOpaqueDelegate, std::function<void(TfLiteOpaqueDelegate*)> >;
Protected Static Functions Documentation
function GetModelAsPacket
static absl::StatusOr< Packet< TfLiteModelPtr > > mediapipe::api2::InferenceCalculator::GetModelAsPacket (
CalculatorContext * cc
)
function GetOpResolverAsPacket
static absl::StatusOr< Packet< tflite::OpResolver > > mediapipe::api2::InferenceCalculator::GetOpResolverAsPacket (
CalculatorContext * cc
)
function TensorContractCheck
static absl::Status mediapipe::api2::InferenceCalculator::TensorContractCheck (
CalculatorContract * cc
)
function WarnFeedbackTensorsUnsupported
static void mediapipe::api2::InferenceCalculator::WarnFeedbackTensorsUnsupported (
CalculatorContract * cc
)
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/calculators/tensor/inference_calculator.h