Represents the metadata of a tensor value.

interface TensorValueMetadata {
    isTensor: true;
    name: string;
    shape: readonly (string | number)[];
    type: keyof DataTypeMap;
}

Hierarchy (view full)

Properties

Properties

isTensor: true

Get a value indicating whether the value is a tensor.

name: string

The name of the specified input or output.

shape: readonly (string | number)[]

Get the shape of the tensor.

If the shape is not defined, the value will an empty array. Otherwise, it will be an array representing the shape of the tensor. Each element in the array can be a number or a string. If the element is a number, it represents the corresponding dimension size. If the element is a string, it represents a symbolic dimension.

type: keyof DataTypeMap

Get the data type of the tensor.

Generated using TypeDoc