mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 02:46:49 +08:00
[rllib] Change NotImplemented -> NotImplementedError. (#1535)
This commit is contained in:
committed by
Richard Liaw
parent
8d1a0b0d04
commit
61d8a17de0
@@ -38,7 +38,7 @@ class TFPolicy(Policy):
|
||||
elif isinstance(action_space, gym.spaces.Discrete):
|
||||
self.ac = tf.placeholder(tf.int64, [None], name="ac")
|
||||
else:
|
||||
raise NotImplemented(
|
||||
raise NotImplementedError(
|
||||
"action space" + str(type(action_space)) +
|
||||
"currently not supported")
|
||||
self.adv = tf.placeholder(tf.float32, [None], name="adv")
|
||||
|
||||
Reference in New Issue
Block a user