8b3543fca9d811c638bb72d78601c8564f5465fd,keras/backend/theano_backend.py,,batch_dot,#Any#Any#Any#,129

Before Change


    if axes is None:
        // behaves like tf.batch_matmul as default
        axes = [(x.ndim - 1,), (y.ndim - 2,)]
    return T.batched_tensordot(x, y, axes=axes)


def transpose(x):
    return T.transpose(x)

After Change


        Tensor with ndim >= 2
    """
    if type(axes) == int:
        axes = (axes, axes)
    if axes is None:
        // behaves like tf.batch_matmul as default
        axes = [x.ndim - 1, y.ndim - 2]
    out = T.batched_tensordot(x, y, axes=axes)
    if ndim(out) == 1:
        out = expand_dims(out, 1)
    return out


def transpose(x):
    return T.transpose(x)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: keras-team/keras
Commit Name: 8b3543fca9d811c638bb72d78601c8564f5465fd
Time: 2016-04-03
Author: EderSantana@users.noreply.github.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: batch_dot


Project Name: keras-team/keras
Commit Name: 8b3543fca9d811c638bb72d78601c8564f5465fd
Time: 2016-04-03
Author: EderSantana@users.noreply.github.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: batch_dot


Project Name: geomstats/geomstats
Commit Name: 129d90f4d44b6fe6e176774d60933248d70880cf
Time: 2020-04-17
Author: ninamio78@gmail.com
File Name: geomstats/geometry/hypersphere.py
Class Name: HypersphereMetric
Method Name: christoffels


Project Name: keras-team/keras
Commit Name: 8b3543fca9d811c638bb72d78601c8564f5465fd
Time: 2016-04-03
Author: EderSantana@users.noreply.github.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: batch_dot