b78c8ff34ec25786831184b32c236aef9f08cd9e,tensor_train.py,TensorTrain,get_shape,#TensorTrain#,46

Before Change


    
    num_dims = self.ndims()
    if self.is_tt_matrix():
      M, N = 1, 1
      for i in range(num_dims):
        curr_core_shape = self._tt_cores[i].get_shape()
        M *= curr_core_shape[1]

After Change


      N = np.prod(raw_shape[1].as_list())
      return (M, N)
    else:
      return self.get_raw_shape()[0]

  @property
  def tt_cores(self):
    A tuple of TT-cores.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: Bihaqo/t3f
Commit Name: 330154d9f5344f0a6ab39b3a313626c4b574dbbd
Time: 2017-02-11
Author: izmailovpavel@gmail.com
File Name: kronecker.py
Class Name:
Method Name: determinant


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