Class UnsafeArrayTensorData
Inheritance
UnsafeArrayTensorData
Syntax
public class UnsafeArrayTensorData : SharedArrayTensorData, ITensorData, IDisposable
Constructors
UnsafeArrayTensorData(Int32)
Declaration
public UnsafeArrayTensorData(int count)
Parameters
Type |
Name |
Description |
Int32 |
count |
|
UnsafeArrayTensorData(Single[], Int32, Int32, Boolean)
Declaration
protected UnsafeArrayTensorData(float[] data, int offset = 0, int count = -1, bool isReadonly = false)
Parameters
UnsafeArrayTensorData(ArrayTensorData)
Declaration
public UnsafeArrayTensorData(ArrayTensorData sharedArray)
Parameters
UnsafeArrayTensorData(SharedArrayTensorData)
Declaration
public UnsafeArrayTensorData(SharedArrayTensorData sharedArray)
Parameters
UnsafeArrayTensorData(TensorShape)
Declaration
public UnsafeArrayTensorData(TensorShape shape)
Parameters
Methods
Dispose()
Declaration
public override void Dispose()
Overrides
Download(TensorShape)
Declaration
public override float[] Download(TensorShape shape)
Parameters
Returns
Overrides
Finalize()
Declaration
protected void Finalize()
Reserve(Int32)
Declaration
public override void Reserve(int count)
Parameters
Type |
Name |
Description |
Int32 |
count |
|
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Upload(Single[], TensorShape, Int32)
Declaration
public override void Upload(float[] data, TensorShape shape, int managedBufferStartIndex = 0)
Parameters
Overrides
Extension Methods