Class TensorHostStorage<'T>
Storage (using a .NET array) for host tensors.
Inheritance
System.Object
TensorHostStorage<'T>
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 |