Skip to content

Commit

Permalink
get default of false for compile in estimator init
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Nov 21, 2024
1 parent 2b414b8 commit ba568ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inst/python/Estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def __init__(self, model, model_parameters, estimator_settings):
self.best_score = None
self.best_epoch = None
self.learn_rate_schedule = None
if estimator_settings["compile"]:
torch_compile = estimator_settings.get("compile", False)
if torch_compile:
self.model = torch.compile(self.model, dynamic=False)

def fit(self, dataset, test_dataset):
Expand Down

0 comments on commit ba568ee

Please sign in to comment.