litert::SimpleSignature

#include <litert_model.h>

A simplified C++ wrapper for LiteRtSignature, representing a model signature.

Summary

Inheritance

Inherits from: internal::NonOwnedHandle< LiteRtSignature >

Constructors and Destructors

SimpleSignature(LiteRtSignature signature)

Public functions

InputNames() const
std::vector< absl::string_view >
InputTensor(absl::string_view name) const
Returns the input tensor for the given input signature name.
InputTensor(size_t index) const
Returns the input tensor at the given index.
InputTensorType(absl::string_view name) const
Expected< RankedTensorType >
Returns the input tensor type for the given input signature name.
InputTensorType(size_t index) const
Expected< RankedTensorType >
Returns the input tensor type at the given index.
Key() const
absl::string_view
OutputNames() const
std::vector< absl::string_view >
OutputTensor(absl::string_view name) const
Returns the output tensor for the given output signature name.
OutputTensor(size_t index) const
Returns the output tensor at the given index.
OutputTensorType(absl::string_view name) const
Expected< RankedTensorType >
Returns the output tensor type for the given output signature name.
OutputTensorType(size_t index) const
Expected< RankedTensorType >
Returns the output tensor type at the given index.

Public functions

InputNames

std::vector< absl::string_view > InputNames() const 

InputTensor

Expected< SimpleTensor > InputTensor(
  absl::string_view name
) const 

Returns the input tensor for the given input signature name.

InputTensor

Expected< SimpleTensor > InputTensor(
  size_t index
) const 

Returns the input tensor at the given index.

InputTensorType

Expected< RankedTensorType > InputTensorType(
  absl::string_view name
) const 

Returns the input tensor type for the given input signature name.

InputTensorType

Expected< RankedTensorType > InputTensorType(
  size_t index
) const 

Returns the input tensor type at the given index.

Key

absl::string_view Key() const 

OutputNames

std::vector< absl::string_view > OutputNames() const 

OutputTensor

Expected< SimpleTensor > OutputTensor(
  absl::string_view name
) const 

Returns the output tensor for the given output signature name.

OutputTensor

Expected< SimpleTensor > OutputTensor(
  size_t index
) const 

Returns the output tensor at the given index.

OutputTensorType

Expected< RankedTensorType > OutputTensorType(
  absl::string_view name
) const 

Returns the output tensor type for the given output signature name.

OutputTensorType

Expected< RankedTensorType > OutputTensorType(
  size_t index
) const 

Returns the output tensor type at the given index.

SimpleSignature

 SimpleSignature(
  LiteRtSignature signature
)