Show / Hide Table of Contents

    Class TensorHostStorage<'T>

    Storage (using a .NET array) for host tensors.

    Inheritance
    System.Object
    TensorHostStorage<'T>
    Implements
    Tensor.Backend.BLASModule.IBLASStorage
    ITensorStorage
    ITensorStorage<'T>
    ITensorHostStorage
    Namespace: Tensor.Host
    Assembly: Tensor.dll
    Syntax
    type TensorHostStorage<'T> (data:'T [])
        interface IBLASStorage
        interface ITensorHostStorage
        interface ITensorStorage<'T>
        interface ITensorStorage
    Parameters
    Type Name Description
    'T [] data
    Type Parameters
    Name Description
    'T

    Constructors

    Name Description
    new: int64 -> TensorHostStorage<'T>

    allocates a new data array with the given number of elements

    new: 'T [] -> TensorHostStorage<'T>

    Implicit constructor.

    Properties

    Name Description
    property Data: 'T []

    the underlying data array

    property DataSize: int64

    size of underlying data array in elements

    property DataSizeInBytes: int64

    size of underlying data array in bytes

    Methods

    Name Description
    override member Equals: obj -> bool
    override member GetHashCode: unit -> int
    member Pin: unit -> PinnedMemory

    pins the underlying data array and returns the corresponding pinned memory

    Explicit Interface Implementations

    Name Description
    interface ITensorStorage<'T> with member Backend: TensorLayout -> ITensorBackend<'T>
    interface ITensorStorage with member Dev: unit -> ITensorDevice
    interface ITensorHostStorage with member Pin: unit -> PinnedMemory
    Back to top Generated by DocFX