Skip to content

Commit

Permalink
fix bug in best_models_dict creating
Browse files Browse the repository at this point in the history
  • Loading branch information
Anya497 committed Dec 19, 2023
1 parent 61f5817 commit 388401d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions VSharp.ML.AIAgent/ml/common_model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ def csv2best_models(ref_model_init: t.Callable[[], torch.nn.Module]):
)
ref_model = load_model(Path(path_to_model), model=ref_model_init())

ref_model.to(GeneralConfig.DEVICE)
best_models[map_name] = (
ref_model,
best_model_score[map_name],
best_model_name,
)
ref_model.to(GeneralConfig.DEVICE)
best_models[map_name] = (
ref_model,
best_model_score[map_name],
best_model_name,
)
return best_models


Expand Down

0 comments on commit 388401d

Please sign in to comment.