Method Tril
Tril<T>(T, int)
Computes the output tensor by retaining the lower triangular values from an input matrix or matrix batch and setting the other values to zero.
Declaration
public T Tril<T>(T X, int k = 0) where T : Tensor
Parameters
| Type | Name | Description |
|---|---|---|
| T | X | The input tensor. |
| int | k | The offset from the diagonal to keep. |
Returns
| Type | Description |
|---|---|
| T | The computed output tensor. |
Type Parameters
| Name | Description |
|---|---|
| T | The tensor type. |