File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ def test_load_state_dict(self) -> None:
81
81
"one" : 1.0 ,
82
82
"tensor" : torch .tensor ([5.0 , 6.0 ]),
83
83
"sharded_tensor" : sharded_tensor .full (
84
- # pyre-ignore [28]
85
84
sharding_spec .ChunkShardingSpec (
86
85
dim = 0 , placements = ["rank:0/cpu" ]
87
86
),
@@ -116,7 +115,6 @@ def test_load_state_dict(self) -> None:
116
115
"one" : 1.0 ,
117
116
"tensor" : torch .tensor ([5.0 , 6.0 ]),
118
117
"sharded_tensor" : sharded_tensor .full (
119
- # pyre-ignore [28]
120
118
sharding_spec .ChunkShardingSpec (dim = 0 , placements = ["rank:0/cpu" ]),
121
119
(4 ,),
122
120
fill_value = 1.0 ,
@@ -157,7 +155,6 @@ def test_load_state_dict(self) -> None:
157
155
expected_state_dict ["state" ]["param_1" ]["tensor" ] = torch .tensor ([50.0 , 60.0 ])
158
156
# pyre-ignore [6]
159
157
expected_state_dict ["state" ]["param_1" ]["sharded_tensor" ] = sharded_tensor .full (
160
- # pyre-ignore [28]
161
158
sharding_spec .ChunkShardingSpec (dim = 0 , placements = ["rank:0/cpu" ]),
162
159
(4 ,),
163
160
fill_value = 10.0 ,
You can’t perform that action at this time.
0 commit comments