71a99a3e0ccdb31f01a2a220380ab22d04cae107,gpytorch/functions/log_normal_cdf.py,LogNormalCDF,forward,#LogNormalCDF#Any#,22

Before Change



        // Case 2: Entries of z that are very small
        if z_is_small.sum() > 0:
            numerator = torch.Tensor([0.5641895835477550741]).expand_as(z[z_is_small])
            denominator = torch.Tensor([1.0]).expand_as(z[z_is_small])

            for r_i in self.r:
                numerator = -z[z_is_small].mul(numerator.div(math.sqrt(2))) + r_i

            for q_i in self.q:
                denominator = -z[z_is_small].mul(denominator.div(math.sqrt(2))) + q_i

After Change



        // Case 2: Entries of z that are very small
        if z_is_small.sum() > 0:
            z_where_z_is_small = z.masked_select(z_is_small)
            numerator = z.new([0.5641895835477550741]).expand_as(z_where_z_is_small)
            denominator = z.new([1.0]).expand_as(z_where_z_is_small)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 71a99a3e0ccdb31f01a2a220380ab22d04cae107
Time: 2017-09-22
Author: gpleiss@gmail.com
File Name: gpytorch/functions/log_normal_cdf.py
Class Name: LogNormalCDF
Method Name: forward


Project Name: uber/pyro
Commit Name: 900c3874bb233c6995fb40a86a0d30a7ae177a41
Time: 2020-05-15
Author: fritzo@uber.com
File Name: pyro/infer/util.py
Class Name: Dice
Method Name: compute_expectation


Project Name: open-mmlab/mmdetection
Commit Name: 2f32a47a170396dc0090bf4cb228f358b69ed26e
Time: 2020-08-04
Author: drcut@users.noreply.github.com
File Name: mmdet/core/post_processing/bbox_nms.py
Class Name:
Method Name: multiclass_nms


Project Name: cornellius-gp/gpytorch
Commit Name: 71a99a3e0ccdb31f01a2a220380ab22d04cae107
Time: 2017-09-22
Author: gpleiss@gmail.com
File Name: gpytorch/functions/log_normal_cdf.py
Class Name: LogNormalCDF
Method Name: forward