417c082cafff43baa996ef21a614dcc9ad524393,tensorlayer/layers/recurrent.py,,target_mask_op,#Any#Any#,857

Before Change


    elif data_shape_size == 2:
        return tf.cast(tf.not_equal(data, pad_val), dtype=tf.int32)
    elif data_shape_size == 1:
        raise ValueError("target_mask_op: data has wrong shape!")
    else:
        raise ValueError("target_mask_op: handling data_shape_size %s hasn"t been implemented!" % (data_shape_size))

After Change


    elif data_shape_size == 2:
        return tf.cast(tf.not_equal(data, pad_val), dtype=tf.int32)
    elif data_shape_size == 1:
        raise ValueError("target_mask_op: data_shape %s is not supported. "
                         "The shape of data should have 2 or 3 dims." % (data.get_shape()))
    else:
        raise ValueError("target_mask_op: handling data_shape %s hasn"t been implemented! "
                         "The shape of data should have 2 or 3 dims" % (data.get_shape()))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: 417c082cafff43baa996ef21a614dcc9ad524393
Time: 2019-06-06
Author: jingqing.zhang15@imperial.ac.uk
File Name: tensorlayer/layers/recurrent.py
Class Name:
Method Name: target_mask_op


Project Name: tensorlayer/tensorlayer
Commit Name: 5fd52a601d9267dd536c6c0670d619facb184d76
Time: 2019-04-01
Author: jingqing.zhang15@imperial.ac.uk
File Name: tensorlayer/layers/recurrent.py
Class Name:
Method Name: retrieve_seq_length_op3


Project Name: GPflow/GPflow
Commit Name: be14d17696f15d11a8075e4943c718320ca97a45
Time: 2019-03-18
Author: art.art.v@gmail.com
File Name: gpflow/conditionals/util.py
Class Name:
Method Name: fully_correlated_conditional_repeat