Deep.Net


TensorHostStorage<'T>

Namespace: Tensor

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

Constructors

ConstructorDescription
new(nElems)
Signature: nElems:int64 -> TensorHostStorage<'T>

allocates a new data array with the given number of elements

CompiledName: .ctor

new(data)
Signature: (data:'T []) -> TensorHostStorage<'T>

CompiledName: .ctor

Instance members

Instance memberDescription
Data
Signature: 'T []

the underlying data array

CompiledName: get_Data

DataSize
Signature: int64

size of underlying data array in elements

CompiledName: get_DataSize

DataSizeInBytes
Signature: int64

size of underlying data array in bytes

CompiledName: get_DataSizeInBytes

Pin()
Signature: unit -> PinnedMemory

pins the underlying data array and returns the corresponding pinned memory

Fork me on GitHub