Skip to content

Commit 411d6d6

Browse files
aporialiaofacebook-github-bot
authored andcommitted
Fix Pyre
Differential Revision: D74817490
1 parent 57deb6e commit 411d6d6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

torchrec/optim/tests/test_keyed.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ 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]
8584
sharding_spec.ChunkShardingSpec(
8685
dim=0, placements=["rank:0/cpu"]
8786
),
@@ -116,7 +115,6 @@ def test_load_state_dict(self) -> None:
116115
"one": 1.0,
117116
"tensor": torch.tensor([5.0, 6.0]),
118117
"sharded_tensor": sharded_tensor.full(
119-
# pyre-ignore [28]
120118
sharding_spec.ChunkShardingSpec(dim=0, placements=["rank:0/cpu"]),
121119
(4,),
122120
fill_value=1.0,
@@ -157,7 +155,6 @@ def test_load_state_dict(self) -> None:
157155
expected_state_dict["state"]["param_1"]["tensor"] = torch.tensor([50.0, 60.0])
158156
# pyre-ignore [6]
159157
expected_state_dict["state"]["param_1"]["sharded_tensor"] = sharded_tensor.full(
160-
# pyre-ignore [28]
161158
sharding_spec.ChunkShardingSpec(dim=0, placements=["rank:0/cpu"]),
162159
(4,),
163160
fill_value=10.0,

0 commit comments

Comments
 (0)