Class ComputeTensorData
Inheritance
ComputeTensorData
Syntax
public class ComputeTensorData : ITensorData, IDisposable
Constructors
ComputeTensorData(TensorShape, String, ComputeInfo.ChannelsOrder, Boolean)
Declaration
public ComputeTensorData(TensorShape shape, string buffername, ComputeInfo.ChannelsOrder onDeviceChannelsOrder, bool clearOnInit = true)
Parameters
ComputeTensorData(ComputeBuffer, TensorShape, Int32, String, ComputeInfo.ChannelsOrder)
Declaration
public ComputeTensorData(ComputeBuffer buffer, TensorShape shape, int offset, string buffername, ComputeInfo.ChannelsOrder onDeviceChannelsOrder)
Parameters
Fields
name
Declaration
Field Value
Properties
buffer
Declaration
public ComputeBuffer buffer { 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