baacb20d15066935e4a23c09b1c1a6843331172f,research/object_detection/meta_architectures/center_net_meta_arch.py,,prediction_tensors_to_temporal_offsets,#Any#Any#Any#,338

Before Change


      the object temporal offsets of (y, x) dimensions.

  
  _, _, width, _ = _get_shape(offset_predictions, 4)

  peak_spatial_indices = flattened_indices_from_row_col_indices(
      y_indices, x_indices, width)
  y_indices = _to_float32(y_indices)
  x_indices = _to_float32(x_indices)

  offsets_flat = _flatten_spatial_dimensions(offset_predictions)

After Change



  // TF Lite does not support tf.gather with batch_dims > 0, so we need to use
  // tf_gather_nd instead and here we prepare the indices for that.
  combined_indices = tf.stack([
      _multi_range(batch_size, value_repetitions=num_boxes),
      tf.reshape(y_indices, [-1]),
      tf.reshape(x_indices, [-1])
  ], axis=1)

  new_offsets = tf.gather_nd(offset_predictions, combined_indices)
  offsets = tf.reshape(new_offsets, [batch_size, num_boxes, -1])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 6

Instances


Project Name: tensorflow/models
Commit Name: baacb20d15066935e4a23c09b1c1a6843331172f
Time: 2020-10-02
Author: gardener@tensorflow.org
File Name: research/object_detection/meta_architectures/center_net_meta_arch.py
Class Name:
Method Name: prediction_tensors_to_temporal_offsets


Project Name: tensorflow/models
Commit Name: baacb20d15066935e4a23c09b1c1a6843331172f
Time: 2020-10-02
Author: gardener@tensorflow.org
File Name: research/object_detection/meta_architectures/center_net_meta_arch.py
Class Name:
Method Name: regressed_keypoints_at_object_centers


Project Name: leftthomas/SRGAN
Commit Name: 549718ec73f84bd54a8fcfab18939f47dbb8c55b
Time: 2017-12-05
Author: leftthomas@qq.com
File Name: train.py
Class Name:
Method Name:


Project Name: geomstats/geomstats
Commit Name: 40d61ff1930843bd099b23a214bfadad4b9bb5b1
Time: 2020-04-23
Author: ninamio78@gmail.com
File Name: geomstats/geometry/hypersphere.py
Class Name: Hypersphere
Method Name: spherical_to_extrinsic


Project Name: geomstats/geomstats
Commit Name: 829bd239ce27aefd9ce6656a7d1e0570ccd28266
Time: 2020-04-20
Author: ninamio78@gmail.com
File Name: geomstats/geometry/symmetric_matrices.py
Class Name: SymmetricMatrices
Method Name: vector_from_symmetric_matrix