7c38f339c274bdc4eadde1e651731f456a5d4162,tensorflow_datasets/core/utils/tf_utils.py,,assert_shape_match,#Any#Any#,130

Before Change


      s1 == s2  // All shape should match
      for s1, s2 in zip(shape1, shape2)
      if s2 is not None):
    raise ValueError("Shape {} do not match {}".format(shape1, shape2))

After Change


    shape2 (tuple): Dyncamic shape (can contains None)
  
  shape1 = tf.TensorShape(shape1)
  shape2 = tf.TensorShape(shape2)
  if shape1.ndims is None or shape2.ndims is None:
    raise ValueError("Shapes must have known rank. Got %s and %s." %
                     (shape1.ndims, shape2.ndims))
  shape1.assert_same_rank(shape2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/datasets
Commit Name: 7c38f339c274bdc4eadde1e651731f456a5d4162
Time: 2018-11-06
Author: rsepassi@google.com
File Name: tensorflow_datasets/core/utils/tf_utils.py
Class Name:
Method Name: assert_shape_match


Project Name: Bihaqo/t3f
Commit Name: b78c8ff34ec25786831184b32c236aef9f08cd9e
Time: 2017-01-25
Author: novikov@bayesgroup.ru
File Name: ops.py
Class Name:
Method Name: full


Project Name: Bihaqo/t3f
Commit Name: c4d25dad258c593270c5e405f8a5182d536f8d88
Time: 2017-01-25
Author: novikov@bayesgroup.ru
File Name: tensor_train.py
Class Name: TensorTrain
Method Name: get_shape