Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 6, 2024
1 parent c16f7d5 commit 15aff00
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/data/test_multi_nested_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ def column_select(


def test_is_floating_point():
met = MultiNestedTensor.from_tensor_mat([
[torch.tensor([1], dtype=torch.long)]
])
met = MultiNestedTensor.from_tensor_mat(
[[torch.tensor([1], dtype=torch.long)]])
assert not met.is_floating_point()
met = MultiNestedTensor.from_tensor_mat([
[torch.tensor([1], dtype=torch.float32)]
])
met = MultiNestedTensor.from_tensor_mat(
[[torch.tensor([1], dtype=torch.float32)]])
assert met.is_floating_point()


Expand Down

0 comments on commit 15aff00

Please sign in to comment.