cff7c0087b9aae064aa7cd08de67a76ea19c6e63,ops.py,,tt_tt_matmul,#Any#Any#,46

Before Change


  a_shape = shapes.lazy_raw_shape(tt_matrix_a)
  tt_ranks_defined = True
  if tt_matrix_a.get_tt_ranks().is_fully_defined():
    a_ranks = tt_matrix_a.get_tt_ranks().as_list()
  else:
    a_ranks = shapes.tt_ranks(tt_matrix_a)
    tt_ranks_defined = False
  b_shape = shapes.lazy_raw_shape(tt_matrix_b)

After Change


  res_shape = (tt_matrix_a.get_raw_shape()[0], tt_matrix_b.get_raw_shape()[1])
  static_a_ranks = tt_matrix_a.get_tt_ranks()
  static_b_ranks = tt_matrix_b.get_tt_ranks()
  out_ranks = [a_r * b_r for a_r, b_r in zip(static_a_ranks, static_b_ranks)]
  return TensorTrain(result_cores, res_shape, tf.TensorShape(out_ranks))


def tt_dense_matmul(tt_matrix_a, matrix_b):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: Bihaqo/t3f
Commit Name: cff7c0087b9aae064aa7cd08de67a76ea19c6e63
Time: 2017-03-11
Author: novikov@bayesgroup.ru
File Name: ops.py
Class Name:
Method Name: tt_tt_matmul


Project Name: NifTK/NiftyNet
Commit Name: 6b48055fdfe3c628833ed26ca394ef2fb1d97f82
Time: 2017-10-26
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/resampler.py
Class Name: ResamplerLayer
Method Name: _resample_nearest


Project Name: NifTK/NiftyNet
Commit Name: 534c4dc7423681faab78d1829c1ec3c31ffb8330
Time: 2018-01-30
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/resampler.py
Class Name: ResamplerLayer
Method Name: _resample_inv_dst_weighting