Skip to content

Commit ff33a9f

Browse files
authored
fbcode/spdl/tests/cuda/buffer_transfer_test.py
Differential Revision: D113409928 Pull Request resolved: #1601
1 parent 8c1ce39 commit ff33a9f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/cuda/buffer_transfer_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_array_transfer_numpy(self) -> None:
151151
np.dtype("int64"): torch.int64,
152152
}
153153

154-
def test(array):
154+
def test(array) -> None:
155155
buffer = spdl.io.transfer_buffer(
156156
array, device_config=spdl.io.cuda_config(device_index=DEFAULT_CUDA)
157157
)
@@ -174,7 +174,7 @@ def test_array_transfer_torch(self) -> None:
174174

175175
device_config = spdl.io.cuda_config(device_index=DEFAULT_CUDA)
176176

177-
def test(cpu_tensor):
177+
def test(cpu_tensor) -> None:
178178
buffer = spdl.io.transfer_buffer(cpu_tensor, device_config=device_config)
179179
cuda_tensor = spdl.io.to_torch(buffer)
180180

0 commit comments

Comments
 (0)