9371beb30cf3c2cef00f246502d925b89f86b626,tensorforce/core/memories/queue.py,Queue,tf_initialize,#Queue#,71

Before Change


            shape=(self.capacity,),
            dtype=util.tf_dtype("bool"),
            initializer=tf.constant_initializer(
                value=[n == self.capacity - 1 for n in range(self.capacity)],
                dtype=util.tf_dtype("bool")
            ),
            trainable=False

After Change


            shape=(self.capacity,),
            dtype=util.tf_dtype("bool"),
            initializer=tf.constant_initializer(
                value=tuple(bool(n == self.capacity - 1) for n in range(self.capacity)),
                dtype=util.tf_dtype("bool")
            ),
            trainable=False
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: reinforceio/tensorforce
Commit Name: 9371beb30cf3c2cef00f246502d925b89f86b626
Time: 2018-04-07
Author: trickmeijer@casttrading.com
File Name: tensorforce/core/memories/queue.py
Class Name: Queue
Method Name: tf_initialize


Project Name: tensorflow/datasets
Commit Name: c534a5a51f44e934f8e58fb1517847a4b9b24ef0
Time: 2018-11-30
Author: epot@google.com
File Name: tensorflow_datasets/core/features/class_label_feature.py
Class Name: ClassLabel
Method Name: __init__


Project Name: jonathf/chaospy
Commit Name: fde4b1f40f02082b56e8af3c696b3f1b0cef7fa4
Time: 2017-09-30
Author: jonathf@gmail.com
File Name: src/chaospy/saltelli.py
Class Name: Saltelli
Method Name: __getitem__