dc83851aca230648c4f75ac1a0d4b9971b2d6aa0,keras/backend/tensorflow_backend.py,,tile,#Any#Any#,2378

Before Change


        A tiled tensor.
    
    if isinstance(n, int):
        n = [n]
    return tf.tile(x, n)


def flatten(x):

After Change


    elif isinstance(n, list):
        n = tuple(n)

    shape = int_shape(x)
    if len(n) < len(shape):  // Padding the axis
        n = tuple([1 for _ in range(len(shape) - len(n))]) + n
    elif len(n) != len(shape):
        raise NotImplementedError
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: dc83851aca230648c4f75ac1a0d4b9971b2d6aa0
Time: 2019-03-16
Author: me@taehoonlee.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: tile


Project Name: deepmipt/DeepPavlov
Commit Name: 688d4ead1098429b45dc53f4fedd303e8413829d
Time: 2018-04-20
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/utils.py
Class Name: Attention
Method Name: call


Project Name: deepmipt/DeepPavlov
Commit Name: a003d7d85c61bc74b88ad0d3b8d07834fe9636ea
Time: 2018-06-26
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/utils.py
Class Name: Attention
Method Name: call