google-deepmind / hanabi-learning-environment

hanabi_learning_environment is a research platform for Hanabi experiments.
Apache License 2.0
644 stars 146 forks source link

module 'tensorflow' has no attribute 'contrib' #48

Open relativisticpoint opened 2 years ago

relativisticpoint commented 2 years ago

I'm trying to run the script hanabi-learning-environment-master/hanabi_learning_environment/agents/rainbow/run_experiment.py but I have an error that says "AttributeError: module 'tensorflow' has no attribute 'contrib'", (I already have tensorflow 2.4.1 and all the necessary modules). I also found this stackoverflow page that addresses this problem, but couldn't upgrade the tensorflow 1.x code to tensorflow 2.x (the same AttributeError occurs when I run train.py because it also imports dqn.py that uses the attribute config of tensorflow which I guess, is no longer available on tensorflow versions 2.X)