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()
return torch.tensor(wigner_D_matrix(order, alpha, beta, gamma), dtype=torch.get_default_dtype() if dtype is None else dtype)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
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: 6
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: neubig/nn4nlp-code
Commit Name: f31488d65a98107e03f2045f3c5e2f927dab067d
Time: 2019-01-18
Author: mysteryvaibhav@gmail.com
File Name: 03-wordemb-pytorch/wordemb-skip.py
Class Name:
Method Name: calc_sent_loss
Project Name: neubig/nn4nlp-code
Commit Name: f31488d65a98107e03f2045f3c5e2f927dab067d
Time: 2019-01-18
Author: mysteryvaibhav@gmail.com
File Name: 03-wordemb-pytorch/wordemb-cbow.py
Class Name:
Method Name: calc_sent_loss