Method Clip
Clip(TensorFloat, TensorFloat, float, float)
Computes an output tensor by applying the element-wise Clip
math function: f(x) = clamp(x, min, max).
Declaration
public override void Clip(TensorFloat X, TensorFloat O, float min, float max)
Parameters
Type | Name | Description |
---|---|---|
TensorFloat | X | The input tensor. |
TensorFloat | O | The output tensor to be computed and filled. |
float | min | The lower clip value. |
float | max | The upper clip value. |
Overrides
Clip(TensorInt, TensorInt, int, int)
Computes an output tensor by applying the element-wise Clip
math function: f(x) = clamp(x, min, max).
Declaration
public override void Clip(TensorInt X, TensorInt O, int min, int max)
Parameters
Type | Name | Description |
---|---|---|
TensorInt | X | The input tensor. |
TensorInt | O | The output tensor to be computed and filled. |
int | min | The lower clip value. |
int | max | The upper clip value. |