rlgraph / rlgraph

RLgraph: Modular computation graphs for deep reinforcement learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

problem

DarkAlphaWarrior opened this issue · comments

""
echo '{"BACKEND":"tf","DISTRIBUTED_BACKEND":"ray"}' > $HOME/.rlgraph/rlgraph.json
Then you can run our Ape-X example:

Start ray on the head machine

ray start --head --redis-port 6379

Optionally join to this cluster from other machines with ray start --redis-address=...

Run script

python apex_pong.py
""
Hello I don't know how to compile that could you make a video?
If I run on Colab I have a problem
""
AttributeError Traceback (most recent call last)
in ()
8 import tensorflow.compat.v1 as tf
9 tf.disable_v2_behavior()
---> 10 from rlgraph.agents import Agent
11 from rlgraph.environments import OpenAIGymEnv
12 from rlgraph.execution import SingleThreadedWorker

4 frames
/usr/local/lib/python3.6/dist-packages/rlgraph/utils/specifiable_server.py in ()
238
239 if get_backend() == "tf":
--> 240 class SpecifiableServerHook(tf.train.SessionRunHook):
241 """
242 A hook for a tf.MonitoredSession that takes care of automatically starting and stopping

AttributeError: module 'tensorflow._api.v2.train' has no attribute 'SessionRunHook'
""