I need a Torch command that checks if two tensors have the same content, and returns TRUE if they have the same content.
For example:
local tens_a = torc
Try this if you want to ignore small precision differences which are common for floats
torch.all(torch.lt(torch.abs(torch.add(tens_a, -tens_b)), 1e-12))