[rllib] Change NotImplemented -> NotImplementedError. (#1535)

This commit is contained in:
Robert Nishihara
2018-02-16 17:08:25 -08:00
committed by Richard Liaw
parent 8d1a0b0d04
commit 61d8a17de0
+1 -1
View File
@@ -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")