Skip to content

Commit

Permalink
upgrade pyre version in fbcode/torchrec - batch 1 (pytorch#1557)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#1557

Differential Revision: D51900798

fbshipit-source-id: 024498c892fca1dd0f8730b860d4e789d4c0ed7c
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Dec 7, 2023
1 parent 1d20248 commit a1b61b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pyre_configuration
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
}
],
"strict": true,
"version": "0.0.101698750730"
"version": "0.0.101701778454"
}
1 change: 0 additions & 1 deletion torchrec/distributed/tests/test_dist_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ def _generate_variable_batch_sparse_features_batch(
out_jagged.append(
KeyedJaggedTensor.from_lengths_sync(
keys=out_keys,
# pyre-ignore[6]
stride_per_key_per_rank=[
list(_flatten(batch_sizes_by_rank[key_idx]))
for key_idx in key_indices
Expand Down
2 changes: 2 additions & 0 deletions torchrec/distributed/tests/test_lazy_awaitable.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:

tempFile = None
with tempfile.NamedTemporaryFile(delete=False) as f:
# pyre-fixme[6]: For 2nd argument expected `SupportsWrite[bytes]` but
# got `_TemporaryFileWrapper[bytes]`.
pickle.dump(gm, f)
tempFile = f

Expand Down

0 comments on commit a1b61b3

Please sign in to comment.