Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
Summary: Fix github ci error caused by D53139358

Differential Revision: D53247357
  • Loading branch information
henrylhtsang authored and facebook-github-bot committed Jan 31, 2024
1 parent 5fc2dfa commit 46fc366
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion torchrec/sparse/jagged_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,9 @@ def _jt_flatten_with_keys(
) -> Tuple[List[Tuple[KeyEntry, Optional[torch.Tensor]]], None]:
values, context = _jt_flatten(t)
# pyre can't tell that GetAttrKey implements the KeyEntry protocol
return [(GetAttrKey(k), v) for k, v in zip(JaggedTensor._fields, values)], context # pyre-ignore[7]
return [ # pyre-ignore[7]
(GetAttrKey(k), v) for k, v in zip(JaggedTensor._fields, values)
], context


def _jt_unflatten(values: List[Optional[torch.Tensor]], context: None) -> JaggedTensor:
Expand Down

0 comments on commit 46fc366

Please sign in to comment.