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]
N *= curr_core_shape[2]
// TODO: Use TensorShape.
return (M, N)
else:
shape = []
for i in range(num_dims):
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.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
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: 40db92599e7607b97f5b52a4d6a90bef9612c317
Time: 2017-02-11
Author: izmailovpavel@gmail.com
File Name: kronecker.py
Class Name:
Method Name: slog_determinant