Closed bazok100 closed 3 years ago
Hi @bazok100. Thanks for reaching out and reporting your issue. Can you provide details on the operating system, python version, and relevant package versions?
Hi @bazok100. Thanks for reaching out and reporting your issue. Can you provide details on the operating system, python version, and relevant package versions?
Dear David, I recently tried the same and I got a similar error (I tried it both in Linux Manjaro Gnome-latest version and in Mac OS Big Sur). Find below the full log of my attempt (apparently the error related to Ray and the latest version of Tensorflow).
WARNING:tensorflow:From ~/anaconda3/envs/experiments/lib/python3.8/site-packages/tensorflow/python/compat/v2_compat.py:96: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
2021-01-25 00:21:52,933 INFO services.py:1171 -- View the Ray dashboard at http://127.0.0.1:8265
2021-01-25 00:21:54,553 INFO trainer.py:591 -- Tip: set framework=tfe or the --eager flag to enable TensorFlow eager execution
2021-01-25 00:21:54,553 INFO trainer.py:616 -- Current log_level is WARN. For more information, set 'log_level': 'INFO' / 'DEBUG' or use the -v and -vv flags.
(pid=273617) WARNING:tensorflow:From ~/anaconda3/envs/experiments/lib/python3.8/site-packages/tensorflow/python/compat/v2_compat.py:96: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
(pid=273617) Instructions for updating:
(pid=273617) non-resource variables are not supported in the long term
(pid=273622) WARNING:tensorflow:From ~/anaconda3/envs/experiments/lib/python3.8/site-packages/tensorflow/python/compat/v2_compat.py:96: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
(pid=273622) Instructions for updating:
(pid=273622) non-resource variables are not supported in the long term
Traceback (most recent call last):
File "~/github_things/or-gym/experiments/logistics.py", line 30, in
@hubbs5 can you check this issue?
What version of Ray and Tensorflow are you using? I ran it with Ray 1.0.0 and Tensorflow 2.3.1 on Ubuntu 16.04 without any issues.
As @FelipeMaldonado pointed out, this seems to be stemming from some Ray and Tensorflow compatibility issue.
What version of Ray and Tensorflow are you using? I ran it with Ray 1.0.0 and Tensorflow 2.3.1 on Ubuntu 16.04 without any issues.
As @FelipeMaldonado pointed out, this seems to be stemming from some Ray and Tensorflow compatibility issue.
Apparently that was the problem. I downgraded the version of Ray to 1.0.0 and it works fine now (maybe you should mention this in the README). Cheers, Felipe
Glad it worked. I've added the Ray version dependency to the README.
Hi, I am trying to reproduce the work @ https://www.datahubbs.com/how-to-use-deep-reinforcement-learning-to-improve-your-supply-chain/ but I keep running into ValueError: Invalid dtype tf.int16 on line agent = agents.ppo.PPOTrainer(env=env_name, config=rl_config). Appreciate any help on resolving this.
Thanks