8df6b252447e160c2433f2f5e0f5343f7451876b,models/utils.py,,conv_layer,#,174

Before Change


    weight_decay = tf.multiply(tf.nn.l2_loss(W), wd, name="weight_loss")
    tf.add_to_collection(LOSSES_COLLECTION, weight_decay)

    result = tf.nn.bias_add(
        tf.nn.conv2d(input_x, W, [1, stride, stride, 1], padding), b)

    // apply nonlinearity
    out = activation(result)

    // log convolution result pre-activation function
    // on a single image, the first of the batch
    conv_results = tf.split(
        value=result[0], num_or_size_splits=shape[3], axis=2)
    grid_side = math.floor(math.sqrt(shape[3]))

After Change


    result = tf.nn.conv2d(input_x, W, [1, stride, stride, 1], padding)
    if bias_term:
        b = bias("b", [shape[3]])
        result = tf.nn.bias_add(result, b)

    // apply nonlinearity
    out = activation(result)

    // log convolution result pre-activation function
    // on a single image, the first of the batch
    conv_results = tf.split(
        value=result[0], num_or_size_splits=shape[3], axis=2)
    grid_side = math.floor(math.sqrt(shape[3]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: galeone/dynamic-training-bench
Commit Name: 8df6b252447e160c2433f2f5e0f5343f7451876b
Time: 2017-02-14
Author: nessuno@nerdz.eu
File Name: models/utils.py
Class Name:
Method Name: conv_layer


Project Name: snorkel-team/snorkel
Commit Name: 900e03a46c6a3aeaf6aa1c058f53979134061549
Time: 2017-04-17
Author: henry.ehrenberg@outlook.com
File Name: snorkel/learning/logistic_regression.py
Class Name: LogisticRegression
Method Name: _build


Project Name: galeone/dynamic-training-bench
Commit Name: 8df6b252447e160c2433f2f5e0f5343f7451876b
Time: 2017-02-14
Author: nessuno@nerdz.eu
File Name: models/utils.py
Class Name:
Method Name: atrous_conv_layer


Project Name: snorkel-team/snorkel
Commit Name: 900e03a46c6a3aeaf6aa1c058f53979134061549
Time: 2017-04-17
Author: henry.ehrenberg@outlook.com
File Name: snorkel/learning/logistic_regression.py
Class Name: SparseLogisticRegression
Method Name: _build