There is not equivalent function in PyTorch for this generic.
To generate this generic we use the function np$logical_or().
Usage
# S3 method for torch.Tensor
|(x, y)
Arguments
x
tensor
y
tensor
Value
A tensor of booleans representing the logical result of the comparison.
False to represent 0, and True to represent 1 in a tensor of data type torch$uint8.