Computes element-wise equality The second argument can be a number or a tensor whose shape is broadcastable with the first argument.
# S3 method for tensor ==(x, other)
x | tensor object |
---|---|
other | the tensor or value to compare |
#> tensor #> 1 #> 1 #> 1 #> 1 #> 1 #> 0 #> 0 #> 1 #> 0 #> 0 #> [ Variable[CPUByteType]{10} ]