Skip to content

Commit

Permalink
Add annotations to torchrec/tensor_types.py (#1648)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #1648

Reviewed By: azad-meta

Differential Revision: D52957237

fbshipit-source-id: 7515239cfc5a8a5a865d11cda6ae39768f0acfae
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Jan 22, 2024
1 parent ece441d commit 239c033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrec/tensor_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class UIntXTensor(torch.Tensor):
__torch_function__ = torch._C._disabled_torch_function_impl

@staticmethod
def __new__(cls, N, elem):
def __new__(cls, N: int, elem):
assert elem.dtype is torch.uint8
# pyre-ignore
return torch.Tensor._make_wrapper_subclass(
Expand Down

0 comments on commit 239c033

Please sign in to comment.