851b618c26a3ab02076e7f40a54d7542e404013b,se3cnn/SO3.py,,spherical_harmonics_xyz,#,109

Before Change


            if J == 0:  // Y^0 is angularly independent, choose any angle
                return spherical_harmonics(0, 123, 321)  // [m]
            else:  // insert zeros for Y^J with J!=0
                return 0
        else:  // not at the origin, sample spherical harmonic
            alpha, beta = x_to_alpha_beta([x, y, z])
            return spherical_harmonics(J, alpha, beta)  // [m]

After Change


    :param xyz: tensor of shape [A, 3]
    :return: tensor of shape [m, A]
    
    if not isinstance(order, list):
        order = [order]

    with torch_default_dtype(torch.float64):
        alpha, beta = x_to_alpha_beta(xyz)  // two tensors of shape [A]
        out = spherical_harmonics(order, alpha, beta)  // [m, A]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: mariogeiger/se3cnn
Commit Name: 851b618c26a3ab02076e7f40a54d7542e404013b
Time: 2018-12-10
Author: geiger.mario@gmail.com
File Name: se3cnn/SO3.py
Class Name:
Method Name: spherical_harmonics_xyz


Project Name: facebookresearch/pytext
Commit Name: 66584dea87782aed5509e4269a9f015002e1f5c1
Time: 2021-02-23
Author: mikekg@fb.com
File Name: pytext/torchscript/module.py
Class Name: PyTextEmbeddingModuleWithDense
Method Name: forward


Project Name: mariogeiger/se3cnn
Commit Name: 851b618c26a3ab02076e7f40a54d7542e404013b
Time: 2018-12-10
Author: geiger.mario@gmail.com
File Name: se3cnn/SO3.py
Class Name:
Method Name: spherical_harmonics_xyz


Project Name: facebookresearch/pytext
Commit Name: 66584dea87782aed5509e4269a9f015002e1f5c1
Time: 2021-02-23
Author: mikekg@fb.com
File Name: pytext/torchscript/module.py
Class Name: PyTextEmbeddingModule
Method Name: forward


Project Name: kundajelab/deeplift
Commit Name: 73c8519430f38e50db9180fec25daf3008e98c95
Time: 2018-07-03
Author: avanti.shrikumar@gmail.com
File Name: deeplift/util.py
Class Name:
Method Name: compile_func