Skip to content

Commit 1c247e2

Browse files
aporialiaofacebook-github-bot
authored andcommitted
Fix Pyre
Summary: not sure why old pyre ignores are erroring - probably pyre update that changes what styles are accepted Differential Revision: D74817490
1 parent 57deb6e commit 1c247e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

torchrec/optim/tests/test_keyed.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_load_state_dict(self) -> None:
8181
"one": 1.0,
8282
"tensor": torch.tensor([5.0, 6.0]),
8383
"sharded_tensor": sharded_tensor.full(
84-
# pyre-ignore [28]
84+
# pyre-fixme
8585
sharding_spec.ChunkShardingSpec(
8686
dim=0, placements=["rank:0/cpu"]
8787
),
@@ -116,7 +116,7 @@ def test_load_state_dict(self) -> None:
116116
"one": 1.0,
117117
"tensor": torch.tensor([5.0, 6.0]),
118118
"sharded_tensor": sharded_tensor.full(
119-
# pyre-ignore [28]
119+
# pyre-fixme
120120
sharding_spec.ChunkShardingSpec(dim=0, placements=["rank:0/cpu"]),
121121
(4,),
122122
fill_value=1.0,
@@ -157,7 +157,7 @@ def test_load_state_dict(self) -> None:
157157
expected_state_dict["state"]["param_1"]["tensor"] = torch.tensor([50.0, 60.0])
158158
# pyre-ignore [6]
159159
expected_state_dict["state"]["param_1"]["sharded_tensor"] = sharded_tensor.full(
160-
# pyre-ignore [28]
160+
# pyre-fixme
161161
sharding_spec.ChunkShardingSpec(dim=0, placements=["rank:0/cpu"]),
162162
(4,),
163163
fill_value=10.0,

0 commit comments

Comments
 (0)