Skip to content

Commit ec92867

Browse files
authored
Remove an inline import (onnx#222)
Remove an inline import added by copilot Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
1 parent a278dea commit ec92867

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/onnx_ir/tensor_adapters_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from __future__ import annotations
66

77
import importlib.util
8+
import io
89
import tempfile
910
import unittest
1011

@@ -86,8 +87,6 @@ def test_tobytes(self, dtype: torch.dtype):
8687

8788
def test_tofile_method_exists_and_works(self):
8889
"""Test that tofile() method exists and works correctly."""
89-
import io
90-
9190
torch_tensor = torch.tensor([1.0, 2.0, 3.0], dtype=torch.float32)
9291
tensor = tensor_adapters.TorchTensor(torch_tensor)
9392

0 commit comments

Comments
 (0)