Skip to content

Commit f18854f

Browse files
aporialiaofacebook-github-bot
authored andcommitted
Fix Pyre test on OSS (#2842)
Summary: Pull Request resolved: #2842 Fixing pyre error: ```` torchrec/ir/utils.py:178:4 Incompatible return type [7]: Expected `DIM` but got `Dim`. Reviewed By: TroyGarden Differential Revision: D71656776 fbshipit-source-id: 3eb552d33c3be3e3fe54e2d55ad043d750cb2cc7
1 parent 4fbffeb commit f18854f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchrec/ir/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def _get_dim(name: str, min: Optional[int] = None, max: Optional[int] = None) ->
175175
"""
176176
dim = f"{name}_{DYNAMIC_DIMS[name]}"
177177
DYNAMIC_DIMS[name] += 1
178+
# pyre-ignore[7]: Expected `DIM` but got `Dim`.
178179
return Dim(dim, min=min, max=max)
179180

180181

0 commit comments

Comments
 (0)