Class SharedArrayTensorData
Inheritance
SharedArrayTensorData
Syntax
public class SharedArrayTensorData : ITensorData, IDisposable
Constructors
SharedArrayTensorData(Single[], Int32, Int32)
Declaration
public SharedArrayTensorData(float[] data, int offset = 0, int count = -1)
Parameters
Fields
m_Array
Declaration
protected float[] m_Array
Field Value
m_Count
Declaration
Field Value
m_Offset
Declaration
Field Value
Properties
array
Declaration
public float[] array { get; }
Property Value
count
Declaration
public int count { get; }
Property Value
maxCapacity
Declaration
public virtual int maxCapacity { get; }
Property Value
Implements
offset
Declaration
public int offset { get; }
Property Value
Methods
Dispose()
Declaration
public virtual void Dispose()
Implements
Download(TensorShape)
Declaration
public virtual float[] Download(TensorShape shape)
Parameters
Returns
Implements
Finalize()
Declaration
protected void Finalize()
Reserve(Int32)
Declaration
public virtual void Reserve(int count)
Parameters
Type |
Name |
Description |
Int32 |
count |
|
Implements
ScheduleAsyncDownload(Int32)
Declaration
public virtual bool ScheduleAsyncDownload(int count)
Parameters
Type |
Name |
Description |
Int32 |
count |
|
Returns
Implements
SharedAccess(out Int32)
Declaration
public virtual float[] SharedAccess(out int offset)
Parameters
Type |
Name |
Description |
Int32 |
offset |
|
Returns
Implements
ToString()
Declaration
public override string ToString()
Returns
Overrides
Upload(Single[], TensorShape, Int32)
Declaration
public virtual void Upload(float[] data, TensorShape shape, int managedBufferStartIndex = 0)
Parameters
Implements
Extension Methods