96a5c2abbb8bb33aa4c6c01c7923c8bceac4fb2a,tensorflow/python/framework/sparse_tensor.py,SparseTensorSpec,_from_components,#SparseTensorSpec#Any#,340

Before Change


        not tf2.enabled()):
      return SparseTensorValue(*tensor_list)
    else:
      return SparseTensor(*tensor_list)

  // The SparseTensorSpec tensor_list encoding uses (de)serialize_sparse ops
  // to (un)box the component tensors in a way that allows for batching &
  // unbatching.

After Change


        not tf2.enabled()):
      return SparseTensorValue(*tensor_list)
    else:
      result = SparseTensor(*tensor_list)
      // Augment the static dense shape with the shape carried by the spec.
      result._dense_shape_default = result._dense_shape_default.merge_with(  // pylint: disable=protected-access
          self._shape)
      return result

  // The SparseTensorSpec tensor_list encoding uses (de)serialize_sparse ops
  // to (un)box the component tensors in a way that allows for batching &
  // unbatching.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/tensorflow
Commit Name: 96a5c2abbb8bb33aa4c6c01c7923c8bceac4fb2a
Time: 2020-11-13
Author: zhuo@google.com
File Name: tensorflow/python/framework/sparse_tensor.py
Class Name: SparseTensorSpec
Method Name: _from_components


Project Name: tensorflow/tensorflow
Commit Name: 595da5557fa996b4c40e4843fc78dbbd80e04c58
Time: 2020-11-13
Author: gardener@tensorflow.org
File Name: tensorflow/python/framework/sparse_tensor.py
Class Name: SparseTensorSpec
Method Name: _from_components


Project Name: keras-team/keras
Commit Name: 49386e8da49f0c63c467c28456c995ad24cc99fb
Time: 2016-11-03
Author: igormq@poli.ufrj.br
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: variable