Interface CpuPinnedConstructorParameters<T>

represent the parameter for constructing a tensor from a pinned CPU buffer

interface CpuPinnedConstructorParameters<T> {
    data: DataTypeMap[T];
    dims: readonly number[];
    location: "cpu-pinned";
    type: T;
}

Type Parameters

Hierarchy

  • CommonConstructorParameters<T>
    • CpuPinnedConstructorParameters

Properties

Properties

data: DataTypeMap[T]

Specify the CPU pinned buffer that holds the tensor data.

dims: readonly number[]

Get the dimensions of the tensor.

location: "cpu-pinned"

Specify the location of the data to be 'cpu-pinned'.

type: T

Specify the data type of the tensor.

Generated using TypeDoc