[RLlib] Fix "tf variable is unhashable" Error. (#24273)

This commit is contained in:
HJasperson 2022-04-29 03:07:02 -05:00 committed by GitHub
parent 2c0f9d7e8f
commit 5f12c62226
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -515,7 +515,7 @@ class ModelCatalog:
def track_var_creation(next_creator, **kw):
v = next_creator(**kw)
created.add(v)
created.add(v.ref())
return v
with tf.variable_creator_scope(track_var_creation):