EmbeddedAITensor interface

Represents a single output tensor from an inference operation.

Signature:

export interface EmbeddedAITensor

Properties

Property Type Description

data

Uint8Array

The raw tensor data. The interpretation of these bytes depends on the dataType.

dataType

EmbeddedAIElementDataType

The data type of each element in the tensor.

dimensions

number[]

The shape of the tensor.

name

string

The name of the output tensor, as defined by the model.