35b2c4917344f338eda67c78673cf4064b3b4265,examples/reinforcement_learning/tutorial_C51.py,DQN,train,#DQN#Any#Any#Any#Any#Any#,234

Before Change



        self._train_func(b_o, b_index, b_m)

        self.niter += 1
        if self.niter % target_q_update_freq == 0:
            sync(self.qnet, self.targetqnet)
            path = os.path.join(args.save_path, "{}.npz".format(self.niter))
            tl.files.save_npz(self.qnet.trainable_weights, name=path)

    @tf.function
    def _train_func(self, b_o, b_index, b_m):
        with tf.GradientTape() as tape:

After Change


        self.niter += 1
        if self.niter % target_q_update_freq == 0:
            sync(self.qnet, self.targetqnet)
            self.save(args.save_path)

    def save(self, path):
        if path is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 15

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: 35b2c4917344f338eda67c78673cf4064b3b4265
Time: 2020-02-07
Author: 34995488+Tokarev-TT-33@users.noreply.github.com
File Name: examples/reinforcement_learning/tutorial_C51.py
Class Name: DQN
Method Name: train


Project Name: tensorlayer/tensorlayer
Commit Name: 35b2c4917344f338eda67c78673cf4064b3b4265
Time: 2020-02-07
Author: 34995488+Tokarev-TT-33@users.noreply.github.com
File Name: examples/reinforcement_learning/tutorial_DQN_variants.py
Class Name: DQN
Method Name: train


Project Name: tensorlayer/tensorlayer
Commit Name: bb857bb2469689da4d2e19473049e47ccc1be04a
Time: 2020-02-07
Author: 34995488+Tokarev-TT-33@users.noreply.github.com
File Name: examples/reinforcement_learning/tutorial_prioritized_replay.py
Class Name: DQN
Method Name: train