mirror of
https://github.com/wassname/ray.git
synced 2026-09-11 12:43:20 +08:00
[RLlib] Issue 12244: Unable to restore multi-agent PPOTFPolicy's Model (from exported). (#12786)
This commit is contained in:
@@ -88,6 +88,7 @@ def try_import_tf(error=False):
|
||||
tf1_module = tf_module.compat.v1
|
||||
if not was_imported:
|
||||
tf1_module.disable_v2_behavior()
|
||||
tf1_module.enable_resource_variables()
|
||||
# No compat.v1 -> return tf as is.
|
||||
except AttributeError:
|
||||
tf1_module = tf_module
|
||||
|
||||
Reference in New Issue
Block a user