Interface ITensorData
An interface that represents a device-dependent representation of the data in a tensor.
Inherited Members
Namespace: Unity.Sentis
Assembly: solution.dll
Syntax
public interface ITensorData : IDisposable
Properties
Name | Description |
---|---|
deviceType | On what device backend are the data elements stored. |
maxCapacity | The maximum count of the stored data elements. |
Methods
Name | Description |
---|---|
Clone() | Returns a deep copy of the internal storage. |
CompleteAllPendingOperations() | Blocking call to make sure that internal data is correctly written to and available for CPU read back. |
Download<T>(int, int) | Returns a contiguous block of data from internal storage. |
IsReadbackRequestDone() | Checks if asynchronous readback request is done. |
ReadbackRequest(Action<bool>) | Schedules asynchronous readback of the internal data. |
ReadbackRequestAsync() | Schedules awaitable asynchronous readback of the internal data. See AsyncReadbackRequest for more info |
Reserve(int) | Reserves memory for |
Upload<T>(NativeArray<T>, int, int) | Uploads a contiguous block of tensor data to internal storage. |