0

Could someone explain why this code:

config_dict = {
            "c": tune.choice([64,128,256]),
            "dp": tune.choice([0.6,0.7,0.8,0.9]), 
            "layers":tune.choice([2,3,4,5]),
               }


hyperopt_search = HyperOptSearch(
        metric="val_acc", mode="max")


tuner = tune.Tuner(tune.with_resources(train_fn, {"gpu": 1,'cpu':6}),tune_config=tune.TuneConfig(num_samples=5),param_space=config_dict,run_config=RunConfig(stop={'training_iteration':5}))
results = tuner.fit()
best_result = results.get_best_trial(metric="val_acc", mode="max",scope='all')

Will run to completion, but with the warning:

2022-10-21 07:52:38,735 WARNING function_trainable.py:620 -- Function checkpointing is disabled. This may result in unexpected behavior when using checkpointing features or certain schedulers. To enable, set the train function arguments to be `func(config, checkpoint_dir=None)`.
== Status ==

Could someone explain how to change the above code to remove this warning?

Slowat_Kela
  • 1,377
  • 2
  • 22
  • 60

0 Answers0