0c842391d34d444393ab0f55382d11a4c5105994,keras/backend/tensorflow_backend.py,,dot,#Any#Any#,756

Before Change


    ```
    """
    if ndim(x) is not None and (ndim(x) > 2 or ndim(y) > 2):
        x_shape = (-1,) + int_shape(x)[1:]
        y_shape = int_shape(y)
        y_permute_dim = list(range(ndim(y)))
        y_permute_dim = [y_permute_dim.pop(-2)] + y_permute_dim
        xt = tf.reshape(x, [-1, x_shape[-1]])

After Change


    """
    if ndim(x) is not None and (ndim(x) > 2 or ndim(y) > 2):
        x_shape = []
        for i, s in zip(int_shape(x), tf.unpack(tf.shape(x))):
            if s is None:
                x_shape.append(i)
            else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: 0c842391d34d444393ab0f55382d11a4c5105994
Time: 2016-12-19
Author: xihuil.silence@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: dot


Project Name: keras-team/keras
Commit Name: 46649e5d97a750379fdec85b3a8ae39f90e26674
Time: 2017-02-10
Author: francois.chollet@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: conv3d


Project Name: keras-team/keras
Commit Name: 46649e5d97a750379fdec85b3a8ae39f90e26674
Time: 2017-02-10
Author: francois.chollet@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: conv2d