Skip to content

Commit

Permalink
[BugFix] Fix test_specs.py (pytorch#2214)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Jun 7, 2024
1 parent 64c0b8e commit d934153
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@
});
</script>
{% endif %}
{% endblock %}
{% endblock %}
2 changes: 1 addition & 1 deletion test/test_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,7 @@ def test_unboundeddiscrete(
@pytest.mark.parametrize(
"device",
[torch.device("cpu")]
+ [torch.device(f"cuda:{i}" for i in range(torch.cuda.device_count()))],
+ [torch.device(f"cuda:{i}") for i in range(torch.cuda.device_count())],
)
class TestTo:
@pytest.mark.parametrize("shape1", [(5, 4)])
Expand Down

0 comments on commit d934153

Please sign in to comment.