MCPcopy
hub / github.com/tensorlayer/TensorLayer / _flat_concat

Method _flat_concat

examples/reinforcement_learning/tutorial_TRPO.py:303–309  ·  view source on GitHub ↗

flat concat input :param xs: a list of tensor :return: flat tensor

(self, xs)

Source from the content-addressed store, hash-verified

301 return tf.reduce_mean(all_kls)
302
303 def _flat_concat(self, xs):
304 """
305 flat concat input
306 :param xs: a list of tensor
307 :return: flat tensor
308 """
309 return tf.concat([tf.reshape(x, (-1, )) for x in xs], axis=0)
310
311 def get_pi_params(self):
312 """

Callers 3

gradientMethod · 0.95
get_pi_paramsMethod · 0.95
hvpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected