Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Performs the CSub operation on each element of the tensor with the
///   <see paramref="value"/> and returns a new tensor with the result.
///   where the result is t[idx] + value * src[idx]
/// </summary>
/// <returns>
///   This returns a new tensor with the same shape as the tensor this operates on.
/// </returns>
Performs the CSub operation on each element of the tensor with the
and returns a new tensor with the result.
where the result is t[idx] + value * src[idx]
Performs the CSub operation on each element of the tensor with the and returns a new tensor with the result . where the result is t [ idx ] + value * src [ idx ]
public ByteTensor CSub (byte value, ByteTensor src)
        {
            if (src == null)
                throw new ArgumentNullException (nameof (src));
            var result = new ByteTensor ();
            THByteTensor_csub (result.handle, this.handle, value, src.handle);
            return result;
        }
public ByteTensor CSub ( byte value , ByteTensor src ) { if ( src == null ) throw new ArgumentNullException ( nameof ( src ) ) ; var result = new ByteTensor ( ) ; THByteTensor_csub ( result . handle , this . handle , value , src . handle ) ; return result ; }
Performs the CSub operation on each element of the tensor with the
and returns a new tensor with the result.
Performs the CSub operation on each element of the tensor with the 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 .
value
byte
src
ByteTensor