I have trained an agent in customized environment and now when I restore the check points, I get this warning and it can not load the check points appropriately:
WARNING eager_tf_policy_v2.py:695 – Cannot restore an optimizer’s state for tf eager! Keras is not able to save the v1.x optimizers (from tf.compat.v1.train) since they aren’t compatible with checkpoints.
It should be noted that when I train the agent I got this warning:
INFO algorithm_config.py:2492 – Executing eagerly (framework=‘tf2’), with eager_tracing=tf2. For production workloads, make sure to set eager_tracing=True in order to match the speed of tf-static-graph (framework=‘tf’). For debugging purposes,
eager_tracing=False is the best choice.
However, I had selected framework=‘tf2’ and eager_tracing=True in configuration dict.
Could you help me?