16a31e2c9fedc654e9117b42b8144adf1d0e4900,examples/reinforcement_learning/tutorial_A3C.py,Worker,work,#Worker#Any#,187
Before Change
buffer_v_target.reverse()
buffer_s, buffer_a, buffer_v_target = (
np.vstack(buffer_s), np.vstack(buffer_a), np.vstack(buffer_v_target)
)
// update gradients on global network
self.AC.update_global(buffer_s, buffer_a, buffer_v_target.astype("float32"), globalAC)
buffer_s, buffer_a, buffer_r = [], [], []
After Change
buffer_s = tf.convert_to_tensor(np.vstack(buffer_s))
buffer_a = tf.convert_to_tensor(np.vstack(buffer_a))
buffer_v_target = tf.convert_to_tensor(np.vstack(buffer_v_target).astype("float32"))
// update gradients on global network
self.AC.update_global(buffer_s, buffer_a, buffer_v_target, globalAC)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: tensorlayer/tensorlayer
Commit Name: 16a31e2c9fedc654e9117b42b8144adf1d0e4900
Time: 2020-02-03
Author: 34995488+Tokarev-TT-33@users.noreply.github.com
File Name: examples/reinforcement_learning/tutorial_A3C.py
Class Name: Worker
Method Name: work
Project Name: GPflow/GPflow
Commit Name: 5809cb0b339612434f4f332a91a2cd3e4570c34d
Time: 2018-02-26
Author: james@prowler.io
File Name: gpflow/transforms.py
Class Name: LowerTriangular
Method Name: backward
Project Name: GPflow/GPflow
Commit Name: 5809cb0b339612434f4f332a91a2cd3e4570c34d
Time: 2018-02-26
Author: james@prowler.io
File Name: gpflow/transforms.py
Class Name: LowerTriangular
Method Name: backward_tensor