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


            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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: oval-group/logger
Commit Name: f3d92990400c0ab69ebc726ba24b66d6e4116af7
Time: 2018-03-07
Author: alban@robots.ox.ac.uk
File Name: logger/utils.py
Class Name:
Method Name: to_float


Project Name: keras-team/keras
Commit Name: ecbf73f72b59f8f5c8746de63270aa1fb3ad7524
Time: 2018-10-01
Author: gabrieldemarmiesse@gmail.com
File Name: keras/callbacks.py
Class Name: TensorBoard
Method Name: on_epoch_end