Class Constant
Represents a constant in a model.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
public class Constant
Constructors
| Name | Description |
|---|---|
| Constant() | Initializes and returns an empty |
| Constant(string, int[]) | Initializes and returns a vector |
| Constant(string, float[]) | Initializes and returns a vector |
| Constant(string, Tensor) | Initializes and returns a |
Fields
| Name | Description |
|---|---|
| dataType | The data type of the constant as a |
| length | The number of elements in the constant. |
| name | The name of the constant. |
| offset | The offset of the first element of the constant in the |
| shape | The shape of the constant as a |
| weights | The elements of the constant as a |
Methods
| Name | Description |
|---|---|
| DataSetToTensor() | Creates and returns a CPU |
| TensorToDataSet(Tensor) | Initializes the constant with the shape, dataType and weights from a given |
| ToString() | Returns a string that represents the |