17a7105058ec582c347fd003d9fc936a6ecf5584,torchgeometry/image/normalization.py,,normalize,#Any#Any#Any#,35

Before Change


    mean = mean[..., :, None, None].to(data.device)
    std = std[..., :, None, None].to(data.device)

    out = data.sub(mean).div(std)

    return out

// - denormalise

After Change


    if mean.shape[0] != data.shape[-3] and mean.shape[:2] != data.shape[:2]:
        raise ValueError("mean lenght and number of channels do not match")

    if std.shape[0] != data.shape[-3] and std.shape[:2] != data.shape[:2]:
        raise ValueError("std lenght and number of channels do not match")

    if std.shape != mean.shape:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: arraiy/torchgeometry
Commit Name: 17a7105058ec582c347fd003d9fc936a6ecf5584
Time: 2019-05-03
Author: diegovd0296@gmail.com
File Name: torchgeometry/image/normalization.py
Class Name:
Method Name: normalize


Project Name: cornellius-gp/gpytorch
Commit Name: f3ed294875549679cb8d365e6604a4d4545de31b
Time: 2018-11-14
Author: balandat@fb.com
File Name: gpytorch/mlls/variational_elbo.py
Class Name: VariationalELBOEmpirical
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: f3ed294875549679cb8d365e6604a4d4545de31b
Time: 2018-11-14
Author: balandat@fb.com
File Name: gpytorch/mlls/variational_elbo.py
Class Name: VariationalELBO
Method Name: forward


Project Name: OpenMined/Grid
Commit Name: d51dd50f93232f5542df1a8ccb2d91cee17c52d8
Time: 2020-07-08
Author: hericles.me@gmail.com
File Name: grid/app/main/sfl/cycles/cycle_manager.py
Class Name: CycleManager
Method Name: _average_plan_diffs