MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / transform

Method transform

rl2/a3c/worker.py:35–37  ·  view source on GitHub ↗
(self, state, sess=None)

Source from the content-addressed store, hash-verified

33 self.output = tf.squeeze(self.output)
34
35 def transform(self, state, sess=None):
36 sess = sess or tf.get_default_session()
37 return sess.run(self.output, { self.input_state: state })
38
39
40# Create initial state by repeating the same frame 4 times

Callers 11

runMethod · 0.45
run_n_stepsMethod · 0.45
play_one_episodeFunction · 0.45
predictMethod · 0.45
gradMethod · 0.45
predictMethod · 0.45
gradMethod · 0.45
predictMethod · 0.45
gradMethod · 0.45
predictMethod · 0.45
gradMethod · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected