Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 3d5560f

Browse files
kyleclomatt-gardner
authored andcommitted
missing =overrides argument when instantiate Params despite a second time (#2553)
1 parent 64a8e13 commit 3d5560f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allennlp/common/testing/model_test_case.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def ensure_model_can_train_save_and_load(self,
8181
assert_allclose(model.state_dict()[key].cpu().numpy(),
8282
loaded_model.state_dict()[key].cpu().numpy(),
8383
err_msg=key)
84-
params = Params.from_file(param_file)
84+
params = Params.from_file(param_file, params_overrides=overrides)
8585
reader = DatasetReader.from_params(params['dataset_reader'])
8686

8787
# Need to duplicate params because Iterator.from_params will consume.

0 commit comments

Comments
 (0)