Unverified Commit 89cb9083 authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Add new assert_equal test util based on torch.testing.assert_close (#3872)


Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
parent 231f80d5
"""This is a temporary module and should be removed as soon as torch.testing.assert_equal is supported."""
# TODO: remove this as soon torch.testing.assert_equal is supported
import functools
import torch.testing
__all__ = ["assert_equal"]
assert_equal = functools.partial(torch.testing.assert_close, rtol=0, atol=0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment