Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Performs an Clamp of the tensor with the provided
///   <see paramref="src"/> tensor and returns a new tensor with the result.
/// </summary>
/// <param name="value1"></param>
/// <param name="value2"></param>
/// <returns>
///   This returns a new tensor with the same shape as the tensor this operates on.
/// </returns>
Performs an Clamp of the tensor with the provided
tensor and returns a new tensor with the result.
Performs an Clamp of the tensor with the provided tensor and returns a new tensor with the result .
public LongTensor Clamp (long value1, long value2)
        {
            var result = new LongTensor ();
            THLongTensor_clamp (result.handle, this.handle, value1, value2);
            return result;
        }
public LongTensor Clamp ( long value1 , long value2 ) { var result = new LongTensor ( ) ; THLongTensor_clamp ( result . handle , this . handle , value1 , value2 ) ; return result ; }
Performs an Clamp of the tensor with the provided
tensor and returns a new tensor with the result.
Performs an Clamp of the tensor with the provided tensor and returns a new tensor with the result .
This returns a new tensor with the same shape as the tensor this operates on.
This returns a new tensor with the same shape as the tensor this operates on .
value1
long
None
value2
long
None