0d3ad1aad015bf2e705448c35b237937dd6cf739,tensorforce/models/model.py,Model,tf_initialize,#Model#,772

Before Change


            )
            self.global_episode = tf.get_variable(
                name="global-episode",
                dtype=util.tf_dtype("int"),
                trainable=False,
                initializer=0,
                collections=["global-episode"]

After Change



            // Global timestep
            collection = self.graph.get_collection(name="global-timestep")
            if len(collection) == 0:
                self.global_timestep = tf.get_variable(
                    name="global-timestep",
                    shape=(),
                    dtype=tf.int64,
                    trainable=False,
                    initializer=tf.constant_initializer(value=0, dtype=tf.int64),
                    collections=["global-timestep", tf.GraphKeys.GLOBAL_STEP]
                )
            else:
                assert len(collection) == 1
                self.global_timestep = collection[0]

            // Global episode
            collection = self.graph.get_collection(name="global-episode")
            if len(collection) == 0:
                self.global_episode = tf.get_variable(
                    name="global-episode",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: reinforceio/tensorforce
Commit Name: 0d3ad1aad015bf2e705448c35b237937dd6cf739
Time: 2018-07-25
Author: alexkuhnle@t-online.de
File Name: tensorforce/models/model.py
Class Name: Model
Method Name: tf_initialize


Project Name: reinforceio/tensorforce
Commit Name: 9000ad931722064fb2efe38649389a5154538ce4
Time: 2019-02-13
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/layers/rnns.py
Class Name: Gru
Method Name: tf_apply


Project Name: reinforceio/tensorforce
Commit Name: 82a059d89d5f5ebc77c6a3f0b8ac4072a3979104
Time: 2018-08-03
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/networks/layer.py
Class Name: Nonlinearity
Method Name: __init__