R/tensor.R
tch_equal.Rd
TRUE if two tensors have the same size and elements, FALSE otherwise.
TRUE
FALSE
tch_equal(x, other)
tensor object
tensor object to compare
x <- tensor(c(1,2)) y <- tensor(c(1,2)) tch_equal(x, y)#> [1] TRUE