160196137fde3fd57c5051aea75ea9830eb25d62,keras/backend/tensorflow_backend.py,,sum,#Any#Any#Any#,111

Before Change


def sum(x, axis=None, keepdims=False):
    """Sum of the values in a tensor, alongside the specified axis.
    """
    if axis is not None and axis < 0:
        axis = axis % len(x.get_shape())
    return tf.reduce_sum(x, reduction_indices=axis, keep_dims=keepdims)


def prod(x, axis=None, keepdims=False):

After Change


def sum(x, axis=None, keepdims=False):
    """Sum of the values in a tensor, alongside the specified axis.
    """
    axis = normalize_axis(axis, ndim(x))
    return tf.reduce_sum(x, reduction_indices=axis, keep_dims=keepdims)


def prod(x, axis=None, keepdims=False):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: keras-team/keras
Commit Name: 160196137fde3fd57c5051aea75ea9830eb25d62
Time: 2016-01-17
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: sum


Project Name: keras-team/keras
Commit Name: 160196137fde3fd57c5051aea75ea9830eb25d62
Time: 2016-01-17
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: max


Project Name: keras-team/keras
Commit Name: 160196137fde3fd57c5051aea75ea9830eb25d62
Time: 2016-01-17
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: min


Project Name: keras-team/keras
Commit Name: 160196137fde3fd57c5051aea75ea9830eb25d62
Time: 2016-01-17
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: sum