Skip to content

Commit

Permalink
suppress errors in pytorch/torcharrow/torcharrow (#317)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #317

Differential Revision: D36184557

fbshipit-source-id: 24d8f9d04a1a4f2b2461cbf298d688b49d1c69d1
  • Loading branch information
Pyre Bot Jr authored and facebook-github-bot committed May 6, 2022
1 parent 85fdb30 commit 1185c4f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion torcharrow/icolumn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,6 @@ def _format_transform_result(
from . import pytorch

pytorch.ensure_available()
# pyre-fixme[16]: Module `pytorch` has no attribute `from_tensor`.
ret = pytorch.from_tensor(raw, dtype=dtype)
elif format == "python" or format == "column":
ret = ta.column(raw, dtype=dtype)
Expand Down
2 changes: 0 additions & 2 deletions torcharrow/test/test_interop.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,8 @@ def base_test_pytorch_transform(self):
from torcharrow.pytorch import PackedList, WithPresence

def list_plus_one(x: PackedList[WithPresence[torch.Tensor]]):
# pyre-fixme[16]: Module `pytorch` has no attribute `PackedList`.
return PackedList(
offsets=x.offsets,
# pyre-fixme[16]: Module `pytorch` has no attribute `WithPresence`.
values=WithPresence(
presence=x.values.presence,
values=(x.values.values + 1) * x.values.presence,
Expand Down

0 comments on commit 1185c4f

Please sign in to comment.