ab9c4f8474ca744c7e67822fa21d408d0b0ae2d0,kornia/augmentation/functional.py,,apply_rotation,#Any#Any#Any#,469

Before Change


                                      wont be concatenated
    

    if not torch.is_tensor(input):
        raise TypeError(f"Input type is not a torch.Tensor. Got {type(input)}")

    device: torch.device = input.device
    dtype: torch.dtype = input.dtype

    input = input.unsqueeze(0)
    input = input.view((-1, (*input.shape[-3:])))
    angles: torch.Tensor = params["degrees"].to(device, dtype)

    transformed: torch.Tensor = rotate(input, angles).squeeze(0)

After Change


    angles: torch.Tensor = params["degrees"].type_as(input)

    transformed: torch.Tensor = rotate(
        input, angles, mode=Resample(params["interpolation"].item()).name.lower())

    if return_transform:
        // TODO: This part should be inferred from rotate directly
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: arraiy/torchgeometry
Commit Name: ab9c4f8474ca744c7e67822fa21d408d0b0ae2d0
Time: 2020-04-18
Author: sj8716643@126.com
File Name: kornia/augmentation/functional.py
Class Name:
Method Name: apply_rotation


Project Name: prody/ProDy
Commit Name: 1c01f08cd378eabf223345e4ac7f0357bbf93649
Time: 2018-02-26
Author: shz66@pitt.edu
File Name: prody/dynamics/functions.py
Class Name:
Method Name: calcENM


Project Name: prody/ProDy
Commit Name: d19f211130de38bb931bbf101df7c6d0698d6e56
Time: 2018-02-27
Author: shz66@pitt.edu
File Name: prody/dynamics/functions.py
Class Name:
Method Name: calcENM