50e10493636fea168ac4ab31d4a673df3df558b2,models/utils.py,,weight,#Any#Any#Any#,18

Before Change


               factor=2.0, mode="FAN_IN", uniform=False, dtype=tf.float32)):
    Returns a tensor with the requested shape, initialized
      using the provided intitializer (default: He init).
    return tf.get_variable(
        name, shape=shape, initializer=initializer, dtype=tf.float32)


def bias(name, shape, initializer=tf.constant_initializer(value=0.0)):
    Returns a bias variabile initializeted wuth the provided initializer

After Change


        name, shape=shape, initializer=initializer, dtype=tf.float32)
    // show weights of the first layer
    if len(shape) == 4 and shape[3] in (1, 3, 4):
        tf_log(tf.summary.image(name, weights, max_outputs=10))
    tf_log(tf.summary.histogram(name, weights))
    return weights
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: galeone/dynamic-training-bench
Commit Name: 50e10493636fea168ac4ab31d4a673df3df558b2
Time: 2016-12-05
Author: nessuno@nerdz.eu
File Name: models/utils.py
Class Name:
Method Name: weight


Project Name: galeone/dynamic-training-bench
Commit Name: 50e10493636fea168ac4ab31d4a673df3df558b2
Time: 2016-12-05
Author: nessuno@nerdz.eu
File Name: models/utils.py
Class Name:
Method Name: conv_layer


Project Name: tryolabs/luminoth
Commit Name: 45c42bcaa66264df7001c814b00a2c3f64e46b97
Time: 2017-06-23
Author: javirey@gmail.com
File Name: frcnn/network.py
Class Name: FasterRCNN
Method Name: _build