f66d3c5ed7b7fa96424fd0d8214594042d9ba3ff,se3cnn/SO3.py,,irr_repr,#,81
Before Change
from lie_learn.representations.SO3.wigner_d import wigner_D_matrix
if torch.is_tensor(alpha):
alpha = alpha.item()
if torch.is_tensor(beta):
beta = beta.item()
if torch.is_tensor(gamma):
gamma = gamma.item()
After Change
- compatible with compose and spherical_harmonics
from lie_learn.representations.SO3.wigner_d import wigner_D_matrix
abc = [alpha, beta, gamma]
for i, x in enumerate(abc):
if torch.is_tensor(x):
abc[i] = x.item()
if dtype is None:
dtype = x.dtype
if device is None:
device = x.device
if dtype is None:
dtype = torch.get_default_dtype()
return torch.tensor(wigner_D_matrix(order, *abc), dtype=dtype, device=device)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: mariogeiger/se3cnn
Commit Name: f66d3c5ed7b7fa96424fd0d8214594042d9ba3ff
Time: 2019-07-09
Author: geiger.mario@gmail.com
File Name: se3cnn/SO3.py
Class Name:
Method Name: irr_repr
Project Name: tensorpack/tensorpack
Commit Name: ffd9eaeb68fff978af23156236df661981017941
Time: 2020-01-09
Author: ppwwyyxx@users.noreply.github.com
File Name: tensorpack/dataflow/format.py
Class Name: LMDBData
Method Name: __iter__
Project Name: Scitator/catalyst
Commit Name: f4beaac559e00a3676d942dc7e8fea69efc01cfe
Time: 2020-11-30
Author: raveforlive@gmail.com
File Name: catalyst/metrics/avg_precision.py
Class Name:
Method Name: mean_avg_precision