Class ComputeTensorData
Inheritance
ComputeTensorData
Syntax
public class ComputeTensorData : ITensorData, IDisposable
Constructors
ComputeTensorData(TensorShape, String, Boolean)
Declaration
public ComputeTensorData(TensorShape shape, string buffername, bool clearOnInit = true)
Parameters
ComputeTensorData(ComputeBuffer, TensorShape, Int32, String)
Declaration
public ComputeTensorData(ComputeBuffer buffer, TensorShape shape, int offset, string buffername)
Parameters
Fields
name
Declaration
Field Value
Properties
buffer
Declaration
public ComputeBuffer buffer { get; }
Property Value
Type |
Description |
ComputeBuffer |
|
offset
Declaration
public int offset { get; }
Property Value
shape
Declaration
public TensorShape shape { get; }
Property Value
Methods
Dispose()
Declaration
public virtual void Dispose()
Download(Int32)
Declaration
public virtual float[] Download(int count)
Parameters
Type |
Name |
Description |
Int32 |
count |
|
Returns
Implements
Finalize()
Declaration
protected void Finalize()
GetMaxCount()
Declaration
public virtual int GetMaxCount()
Returns
Implements
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[], Int32, Int32)
Declaration
public virtual void Upload(float[] data, int offset = 0, int count = -1)
Parameters
Implements