Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions torch/testing/_internal/common_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@ def _run(cls, test_name, rank, world_size):
# every thread have the same value. This would be relevant when we use op db tests, where it
# needs those states to be set i.e. using instantiate_device_type_tests()
# TODO: figure out a better way to do this
self._tls = threading.local()
self._tls.precision = TestCase._precision
self._tls.rel_tol = TestCase._rel_tol

Expand Down