ONNX Runtime JavaScript API
    Preparing search index...

    Interface CpuPinnedConstructorParameters<T>

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

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

    Type Parameters

    Hierarchy

    • CommonConstructorParameters<T>
      • CpuPinnedConstructorParameters
    Index

    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.