Namespace Unity.InferenceEngine
Classes
CPUTensorData
Represents Burst-specific internal data storage for a Tensor.
CommandBufferWorkerExtensions
Provides extension methods for scheduling the worker from a CommandBuffer.
ComputeTensorData
Represents data storage for a Tensor as a compute buffer, for GPUCompute backend.
Constant
Represents a constant in a model.
Functional
Represents the static functional methods for model building and compilation.
FunctionalExtensions
Represents extension functions for the Sentis functional API.
FunctionalGraph
Represents a model graph built with the Functional API.
FunctionalTensor
Represents a tensor that is a result of functional tensor operations.
Layer
Represents the base class for all model layers.
Model
Represents a Sentis neural network.
ModelAsset
A binary representation of a Sentis asset.
ModelLoader
Provides methods for loading models.
ModelQuantizer
Provides methods for quantizing models.
ModelWriter
Provides methods for saving models.
NativeTensorArray
Represents an area of native memory that's exposed to managed code for tensor data storage.
NativeTensorArrayFromManagedArray
Represents an area of managed memory that's exposed as if it's native memory.
Random
Represents a pseudo-random number generator used by Sentis.
Tensor
Represents data in a multidimensional array-like structure.
Tensor<T>
Represents data in a multidimensional array-like structure.
TextureConverter
Provides methods for converting between textures and tensors.
TextureTensorData
Represents the data storage for a 'Tensor' as a render texture, for backends that use GPU pixel shaders.
Sentis packs the tensor data into the pixels of an RGBA float4 texture.
Sentis chooses a single tensor dimension as the blocked axis, across which data is chunked in float4 blocks.
Tensor dimensions don't map directly to texture dimensions. Sentis creates the texture with dimensions large enough to fit all the data and pixel shaders index the data based on both the tensor and texture dimensions (see example below).
Worker
Represents a worker that allows you to run inference on neural networks (models).
Worker abstracts implementation details on different hardware devices such as the CPU and the GPU. Use Worker to perform the following tasks:
- Specify inputs.
- Schedule the work.
- Get outputs.
Internally, Worker translates the neural network from a Model into a set of operations, then sends the operations to the hardware device for asynchronous execution.
Structs
DynamicTensorShape
Represents a tensor shape that can have dynamic dimensions or dynamic rank.
Model.Input
Represents an input to a model.
Model.Output
Represents an output of a model. Use this struct to access or modify the outputs of a model.
ONNXModelMetadata
Contains additional metadata about the ONNX model, stored in the ONNX file.
TensorShape
Represents the shape of a tensor.
TextureTransform
Represents settings for converting between textures and tensors.
Create an instance of TextureTransform using the constructor, then use the TextureTransform object as a parameter in TextureConverter methods.
For example: TextureTransform settings = new TextureTransform().SetDimensions(256, 256, 4).SetTensorLayout(TensorLayout.NHWC);
Interfaces
IONNXMetadataImportCallbackReceiver
Interface for receiving callbacks for metadata during ONNX import.
ITensorData
Interface for device-dependent storage of tensor data.
Enums
BackendType
Types of backends that Sentis uses to run inference on a neural network.
Channel
Set the position of each color channel in a texture tensor.
ChannelSwizzle
Options for the order of the color channels in a texture tensor.
CoordOrigin
Options for the position of the origin (0, 0) in the x and y dimensions of a texture tensor.
DataType
Options for the data type of a Tensor.
DeviceType
Types of devices that Sentis uses to run inference on a neural network.
QuantizationType
Type of quantization for float weights.
TensorLayout
Options for the dimension layout in a texture tensor.