Class Trilu
Represents a Trilu layer. The layer computes the output tensor by retaining the upper or lower triangular values from an input matrix or matrix batch and setting the other values to zero.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
[Serializable]
public class Trilu : Layer
Constructors
| Name | Description |
|---|---|
| Trilu(string, string, string, TriluMode) | Initializes and returns an instance of |
| Trilu(string, string, TriluMode) | Initializes and returns an instance of |
Fields
| Name | Description |
|---|---|
| mode | The lower or upper mode for the operation. |
Methods
| Name | Description |
|---|---|
| Execute(Tensor[], ExecutionContext) | Executes the layer using the operations and variables from the If the layer has more than one output, output tensors are saved to variables. |
| ToString() | Returns a string that represents the |