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:
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 ,
You can’t perform that action at this time.
0 commit comments