When I run the following code (as instructed on the website RLlib Offline Datasets — Ray v1.7.0), I got the errors.
input_reader = JsonReader("/tmp/cartpole-out")
input_ops = input_reader.tf_input_ops()
print(input_ops[“obs”]) # → output Tensor shape=[None, 4]
print(input_ops[“actions”]) # → output Tensor shape=[None]
Traceback (most recent call last):
File “file_path”, line 13, in
input_ops = input_reader.tf_input_ops()
File “file_path”, line 87, in tf_input_ops
self._queue_runner.enqueue(batch)
File “file_path”, line 113, in enqueue
self.sess.run(self.enqueue_op, feed_dict=data)
AttributeError: ‘NoneType’ object has no attribute ‘run’
I checked with input_reader.next(), it has data with it.
Does anyone know what the problem is? Thank.