Class BurstTensorData
Represents Burst-specific internal data storage for a Tensor
.
Implements
Inherited Members
Namespace: Unity.Sentis
Assembly: solution.dll
Syntax
public class BurstTensorData : ITensorData, IDisposable, IDependableMemoryResource, IConvertibleToComputeTensorData, IConvertibleToArrayTensorData, IReadableTensorData
Constructors
Name | Description |
---|---|
Burst |
Initializes and returns an instance of |
Burst |
Initializes and returns an instance of |
Burst |
Initializes and returns an instance of |
Burst |
Initializes and returns an instance of |
Burst |
Initializes and returns an instance of |
Properties
Name | Description |
---|---|
array | The |
count | The length of the tensor using this data. |
device |
On what device backend are the data elements stored. |
fence | A read fence job handle. You can use |
max |
The maximum count of the stored data elements. |
offset | The integer offset for the backing data. |
raw |
The raw memory pointer for the resource. |
reuse | A write fence job handle. You can use |
shape | The shape of the tensor using this data as a |
Methods
Name | Description |
---|---|
Clone() | Returns a deep copy of the internal storage. |
Complete |
Blocking call to make sure that internal data is correctly written to and available for CPU read back. |
Convert |
Implement this method to convert to |
Convert |
Implement this method to convert to |
Dispose() | Disposes of the |
Download<T>(int, int) | Returns data from internal storage. |
~Burst |
Finalizes the |
Get |
Returns a ReadOnlyNativeArray handle on the linear memory data. |
Get<T>(int) | Returns a data element. |
Is |
Checks if asynchronous readback request is done. |
Pin(Tensor, bool) | Moves a tensor into memory on the CPU backend device. |
Readback |
Schedules asynchronous readback of the internal data. |
Readback |
Schedules awaitable asynchronous readback of the internal data. See AsyncReadbackRequest for more info |
Reserve(int) | Reserves storage for |
Set<T>(int, T) | Sets |
To |
Returns an array that is a copy of the linear memory data. |
To |
Returns a ReadOnlySpan on the linear memory data. |
To |
Returns a string that represents the |
Upload<T>(Native |
Uploads data to internal storage. |