MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / _process_batch

Method _process_batch

examples/DeepQNetwork/expreplay.py:356–361  ·  view source on GitHub ↗
(self, batch_exp)

Source from the content-addressed store, hash-verified

354 view_state(sample[0])
355
356 def _process_batch(self, batch_exp):
357 state = np.asarray([e[0] for e in batch_exp], dtype=self.state_dtype)
358 reward = np.asarray([e[1] for e in batch_exp], dtype='float32')
359 action = np.asarray([e[2] for e in batch_exp], dtype='int8')
360 isOver = np.asarray([e[3] for e in batch_exp], dtype='bool')
361 return [state, action, reward, isOver]
362
363 # DataFlow method:
364 def __iter__(self):

Callers 1

__iter__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected