[rllib] Fix TF2 import of EagerVariableStore (#5625)

This commit is contained in:
Eric Liang
2019-09-07 12:10:03 -07:00
committed by GitHub
parent 1455a19c85
commit cf90394a09
+2 -2
View File
@@ -152,9 +152,9 @@ class DistributionalQModel(TFModelV2):
return state_score
if tf.executing_eagerly():
from tensorflow.python.ops import variable_scope
# Have to use a variable store to reuse variables in eager mode
import tensorflow.contrib as tfc
store = tfc.eager.EagerVariableStore()
store = variable_scope.EagerVariableStore()
# Save the scope objects, since in eager we will execute this
# path repeatedly and there is no guarantee it will always be run