9801f28774b8d4aeed7d65025bf2451814c1db6d,chainerrl/agents/ddpg.py,DDPG,batch_act,#DDPG#Any#,347

Before Change


            batch_xs = self.batch_states(
                [[obs] for obs in batch_obs],
                self.xp, self.phi)
            batch_action = [
                self.policy(batch_xs[i]).sample()
                for i in range(len(batch_obs))]
            // Q is not needed here, but log it just for information
            // q = self.q_function(batch_xs, batch_action)

        // Update stats

After Change


        with chainer.using_config("train", False), chainer.no_backprop_mode():
            batch_xs = self.batch_states(batch_obs,
                self.xp, self.phi)
            batch_action = self.policy(batch_xs).sample()
            // Q is not needed here, but log it just for information
            q = self.q_function(batch_xs, batch_action)

        // Update stats
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: chainer/chainerrl
Commit Name: 9801f28774b8d4aeed7d65025bf2451814c1db6d
Time: 2019-03-26
Author: prabhat.nagarajan@gmail.com
File Name: chainerrl/agents/ddpg.py
Class Name: DDPG
Method Name: batch_act


Project Name: HyperGAN/HyperGAN
Commit Name: 345fce3d67cafe3a1728b177d376193f48efd4bd
Time: 2020-02-17
Author: mikkel@255bits.com
File Name: hypergan/samplers/batch_walk_sampler.py
Class Name: BatchWalkSampler
Method Name: __init__


Project Name: Microsoft/nni
Commit Name: 28999d440572b5c18156599df0af46a4bd86d2ec
Time: 2019-06-25
Author: xuehui@microsoft.com
File Name: src/sdk/pynni/nni/metis_tuner/Regression_GMM/Selection.py
Class Name:
Method Name: selection_r