[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unit tests failing with torch 1.13 #3117

Merged
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ def test_compute_encodings_with_no_stats(self, encoding_analyzers):

@pytest.mark.parametrize('dtype', [torch.float, torch.half])
@pytest.mark.parametrize('symmetric', [True, False])
@pytest.mark.cuda
def test_continuity(self, symmetric, dtype, encoding_analyzers):
for encoding_analyzer in encoding_analyzers:
normal_range = torch.arange(-128, 128).to(dtype) / 256
normal_range = torch.arange(-128, 128).to(dtype).cuda() / 256
eps = torch.finfo(dtype).eps

num_steps = math.pow(2, 8) - 2
Expand Down
Loading