You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hi, thanks for the excellent library. I have been using the library for a while now and have found that whenever I'm dealing with fitting GaussianProcessRegression models TensorFlow gives me the following warning:
W tensorflow/core/grappler/optimizers/loop_optimizer.cc:907] Skipping loop optimization for Merge node with control input: cond/branch_executed/_9
I just wanted to double check that this is unavoidable, and not something to do with my setup?
As a side note - the expected improvement notebook also doesn't seem to work in its current state; running the BO loop gives the following error:
NotImplementedError: Failed to save the optimization state. Some models do not support deecopying or serialization and cannot be saved. (This is particularly common for deep neural network models, though some of the model wrappers accept a model closure as a workaround.) For these models, the track_state`` argument of the :meth:~trieste.bayesian_optimizer.BayesianOptimizer.optimize method should be set to `False`. This means that only the final model will be available.`
To reproduce
Steps to reproduce the behaviour:
Behaviour can be reproduced by running the expected improvement notebook. Alternatively, you can run the following (which has been copied from the notebook):
Thanks for reporting this and sorry that it somehow fell between the gaps and was ignored for so long!
I've not managed to reproduce the warning with your sample script, which ran to completion (I tensorflow/core/kernels/logging_ops.cc:171] Optimization completed without errors) without that warning, suggesting it's either been fixed or is perhaps connected to running on macOS. There is definitely nothing that looks wrong with the script, and TF is often trigger happy with its warnings, so if the results are as expected I would recommend ignoring it.
Describe the bug
Hi, thanks for the excellent library. I have been using the library for a while now and have found that whenever I'm dealing with fitting
GaussianProcessRegression
models TensorFlow gives me the following warning:W tensorflow/core/grappler/optimizers/loop_optimizer.cc:907] Skipping loop optimization for Merge node with control input: cond/branch_executed/_9
This seems to occur when the models are getting fitted by the
BayesianOptimizer
(https://github.com/secondmind-labs/trieste/blob/develop/trieste/bayesian_optimizer.py#L751C5-L755).I just wanted to double check that this is unavoidable, and not something to do with my setup?
As a side note - the expected improvement notebook also doesn't seem to work in its current state; running the BO loop gives the following error:
NotImplementedError: Failed to save the optimization state. Some models do not support deecopying or serialization and cannot be saved. (This is particularly common for deep neural network models, though some of the model wrappers accept a model closure as a workaround.) For these models, the
track_state`` argument of the :meth:~trieste.bayesian_optimizer.BayesianOptimizer.optimize
method should be set to `False`. This means that only the final model will be available.`To reproduce
Steps to reproduce the behaviour:
Behaviour can be reproduced by running the expected improvement notebook. Alternatively, you can run the following (which has been copied from the notebook):
The text was updated successfully, but these errors were encountered: