return boolean
Returns True if two arrays are element-wise equal within a tolerance.
torch.allclose — PyTorch 2.2 documentation
elementwise, for all elements of input and other. The behaviour of this function is analogous to
numpy.allclose
https://pytorch.org/docs/stable/generated/torch.allclose.html#torch.allclose

Seonglae Cho