Class Tensor
Represents data in a multidimensional array-like structure.
Implements
Inherited Members
Namespace: Unity.Sentis
Assembly: solution.dll
Syntax
public abstract class Tensor : IDisposable
Constructors
Name | Description |
---|---|
Tensor(Tensor |
Instantiates and returns a Tensor with the specified |
Properties
Name | Description |
---|---|
allocator | The allocator for the tensor. Refer to ITensor |
data |
The data type of the elements of the tensor. |
shape | The shape of the tensor, as a |
tensor |
The device-specific internal representation of the tensor data. |
Methods
Name | Description |
---|---|
Attach |
Associates a tensor with the block of data on a device. Sentis downloads from Make sure |
Complete |
Completes all scheduled tensor operations on device. |
Deep |
Returns a deep copy of the current Tensor. |
Detach |
Synchronizes the tensor data with the data on the device, then remove the tensor from the device. |
Dispose() | Disposes of the tensor and any associated memory. |
~Tensor() | Dispose of the tensor and any associated memory. |
Is |
Checks if asynchronous readback request it done. Returns true if async readback is successful. |
Make |
Blocking call to make tensor data read/write. Issues a blocking download of the internal data. And converts tensorData to ArrayTensorData |
Make |
Non blocking call to make tensor data read/write. Issues a non blocking download of the internal data. And converts tensorData to ArrayTensorData |
Readback |
Schedules asynchronous download of the internal data. |
Readback |
Schedules asynchronous download task of the internal data. Boolean indicates if async readback is successful. |
Shallow |
Returns a shallow copy of the current |
Shallow |
Returns a shallow copy of the
|
Take |
Removes system references to the tensor. The caller assumes ownership. |
To |
Returns a string that represents the |
Upload |
Uploads the tensor data to the destination data location on device. |