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
raw_shape = self.get_raw_shape()
if self.is_tt_matrix():
// TODO: return TensorShape.
M = np.prod(raw_shape[0].as_list())
N = np.prod(raw_shape[1].as_list())
return (M, N)
else:
return self.get_raw_shape()[0]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: tensorflow/agents
Commit Name: 150442111a9db973dcce7d20fb0cf386cebf60b0
Time: 2019-12-11
Author: ebrevdo@google.com
File Name: tf_agents/agents/ddpg/actor_network.py
Class Name: ActorNetwork
Method Name: call
Project Name: deepchem/deepchem
Commit Name: 7c9123131cb9e353ee8f6e1245f41d77f85af713
Time: 2018-08-22
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/layers.py
Class Name: AtomicConvolution
Method Name: create_tensor
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