Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
akihironitta committed Dec 30, 2024
1 parent f4a45d9 commit 5aeca53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_frame/data/multi_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def cuda(self, *args, **kwargs):

def pin_memory(self, *args, **kwargs):
out = self._apply(lambda x: _pin_memory(x, *args, **kwargs))
print('result:', out, out.is_pinned(), out.device, args, kwargs)
print('result:', out, out.is_pinned(), args, kwargs)
return out

def is_pinned(self) -> bool:
Expand Down Expand Up @@ -399,5 +399,5 @@ def _batched_arange(count: Tensor) -> tuple[Tensor, Tensor]:


def _pin_memory(tensor: Tensor, *args, **kwargs) -> Tensor:
print('input:', tensor, tensor.is_pinned(), tensor.device, args, kwargs)
print('input:', tensor, tensor.is_pinned(), args, kwargs)
return tensor.pin_memory(*args, **kwargs)

0 comments on commit 5aeca53

Please sign in to comment.