google-research / recsim

A Configurable Recommender Systems Simulation Platform
https://github.com/google-research/recsim
Apache License 2.0
732 stars 127 forks source link

TF2.0 Compatibility Bug #27

Open abhiishek-pal opened 1 year ago

abhiishek-pal commented 1 year ago

In the dqn_agent.py the used tf.keras.layers.Dense(TF2.0) does not support graph reuse as in the way it is intended to. Hence N number of graphs are being initialised.

using tf.layers.dense, inplace of tf.keras.layers.Dense was able to overcome the issue for now.

Sandy4321 commented 9 months ago

any updates?