3fe89b4f7b393696039dd61d4aea3f648e2c809e,keras/backend/tensorflow_backend.py,,conv2d,#Any#Any#Any#Any#Any#Any#,2697

Before Change


        raise ValueError("Unknown data_format " + str(data_format))

    padding = _preprocess_padding(padding)
    if data_format == "channels_last":
        tf_data_format = "NHWC"
    else:
        tf_data_format = "NCHW"
    x = tf.nn.convolution(
        input=x,
        filter=kernel,
        dilation_rate=dilation_rate,

After Change


    // With 4d inputs, tf.nn.convolution only supports
    // data_format NHWC, so we transpose the inputs
    // in case we are in data_format channels_first.
    x = _preprocess_conv2d_input(x, data_format)
    padding = _preprocess_padding(padding)
    x = tf.nn.convolution(
        input=x,
        filter=kernel,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: keras-team/keras
Commit Name: 3fe89b4f7b393696039dd61d4aea3f648e2c809e
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: conv2d


Project Name: keras-team/keras
Commit Name: 6b106ab4ec9a1c0eb3e24ae590ce63f84022ad40
Time: 2017-10-16
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: conv2d


Project Name: keras-team/keras
Commit Name: ee8ff00a2a8a307c952fb8e7bef241188c7fb12b
Time: 2016-07-03
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: pool2d