介面 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 生成