92e936b10af3f12fcbb1ad00b50b9c82b09503a7,ops.py,,tt_sparse_flat_inner,#Any#Any#,338

Before Change


      // implementation
      // https://github.com/tensorflow/tensorflow/issues/206
      curr_core = tt_a.tt_cores[core_idx]
      left_rank = tf.shape(curr_core)[0]
      right_rank = tf.shape(curr_core)[-1]
      curr_core = tf.transpose(curr_core, (1, 2, 0, 3))
      curr_core = tf.reshape(curr_core, (-1, left_rank, right_rank))
      // Ravel multiindex (row_idx[:, core_idx], col_idx[:, core_idx]) into
      // a linear index to use tf.gather that supports only first dimensional
      // gather.

After Change


      curr_core_shape = (a_shape[0][core_idx]*a_shape[1][core_idx], left_rank,
                         right_rank)
      // TODO: test with partually known shape (e.g. tt_ranks are undefined).
      curr_core_shape = tf.TensorShape(curr_core_shape)
      curr_core = tf.reshape(curr_core, curr_core_shape)
      // Ravel multiindex (row_idx[:, core_idx], col_idx[:, core_idx]) into
      // a linear index to use tf.gather that supports only first dimensional
      // gather.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Bihaqo/t3f
Commit Name: 92e936b10af3f12fcbb1ad00b50b9c82b09503a7
Time: 2017-02-11
Author: novikov@bayesgroup.ru
File Name: ops.py
Class Name:
Method Name: tt_sparse_flat_inner


Project Name: asyml/texar
Commit Name: 066ef66950b6729a1cde321364b368d2fc3a9e1b
Time: 2018-04-28
Author: shore@pku.edu.cn
File Name: texar/modules/decoders/transformer_decoders.py
Class Name: TransformerDecoder
Method Name: greedy_decode


Project Name: tensorflow/models
Commit Name: 2689c9aee73eed60661ca6868a479ce075d0d194
Time: 2018-07-20
Author: 36285763+yhliang2018@users.noreply.github.com
File Name: official/keras_application_models/dataset.py
Class Name:
Method Name: generate_synthetic_input_dataset