接口 CpuPinnedConstructorParameters<T>

表示从已固定的 CPU 缓冲区构造张量的参数

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

类型参数

继承关系

  • CommonConstructorParameters<T>
    • CpuPinnedConstructorParameters

属性

data dims (继承自) location type (继承自)

属性

data: DataTypeMap[T]

指定持有张量数据的已固定的 CPU 缓冲区。

dims: readonly number[]

获取张量的维度。

location: "cpu-pinned"

指定数据位置为 'cpu-pinned'。

type: T

指定张量的数据类型。

使用 TypeDoc 生成