接口 CpuPinnedConstructorParameters<T>

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

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

类型参数

继承关系

  • CommonConstructorParameters<T>
    • CpuPinnedConstructorParameters

属性

data: DataTypeMap[T]

指定保存张量数据的CPU固定(pinned)缓冲区。

dims: readonly number[]

获取张量的维度。

location: "cpu-pinned"

指定数据位置为“cpu-pinned”。

type: T

指定张量的数据类型。

使用 TypeDoc 生成