Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Compares two tensors element-wise and returns the Boolean result tensor encoded as a byte: 0 or 1.
/// </summary>
/// <param name="dimension">The dimension to process along.</param>
/// <param name="keepdim">true if the reduction dimension should be kept, false otherwise.</param>
Compares two tensors element-wise and returns the Boolean result tensor encoded as a byte: 0 or 1.
Compares two tensors element - wise and returns the Boolean result tensor encoded as a byte : 0 or 1 .
public ByteTensor LogicalAny (int dimension, bool keepdim)
        {
            var result = new ByteTensor ();
            THByteTensor_logicalAny (result.handle, this.handle, dimension, keepdim?1:0);
            return result;
        }
public ByteTensor LogicalAny ( int dimension , bool keepdim ) { var result = new ByteTensor ( ) ; THByteTensor_logicalAny ( result . handle , this . handle , dimension , keepdim ? 1 : 0 ) ; return result ; }
Compares two tensors element-wise and returns the Boolean result tensor encoded as a byte: 0 or 1.
Compares two tensors element - wise and returns the Boolean result tensor encoded as a byte : 0 or 1 .
dimension
int
The dimension to process along.
The dimension to process along .
keepdim
bool
true if the reduction dimension should be kept, false otherwise.
true if the reduction dimension should be kept false otherwise .