Interface IReadableTensorData
An interface that represents tensor data that can be read to and written from on CPU.
Namespace: Unity.Sentis
Assembly: solution.dll
Syntax
public interface IReadableTensorData
Methods
| Name | Description |
|---|---|
| GetReadOnlyNativeArrayHandle<T>(int, int) | Returns a ReadOnlyNativeArray handle on the linear memory data. |
| Get<T>(int) | Returns a data element. |
| Set<T>(int, T) | Sets |
| ToArray<T>(int, int) | Returns an array that is a copy of the linear memory data. |
| ToReadOnlySpan<T>(int, int) | Returns a ReadOnlySpan on the linear memory data. |