377e5ea45cbb669e3afc36c62cad7e381403633b,pyro/infer/reparam/stable.py,SymmetricStableReparam,__call__,#SymmetricStableReparam#Any#Any#Any#,83

Before Change


        half_pi = proto.new_full(proto.shape, math.pi / 2)
        one = proto.new_ones(proto.shape)
        u = pyro.sample("{}_uniform".format(name),
                        self._wrap(dist.Uniform(-half_pi, half_pi), event_dim))
        e = pyro.sample("{}_exponential".format(name),
                        self._wrap(dist.Exponential(one), event_dim))

After Change


        half_pi = proto.new_tensor(math.pi / 2)
        one = proto.new_ones(proto.shape)
        u = pyro.sample("{}_uniform".format(name),
                        self._wrap(dist.Uniform(-half_pi, half_pi).expand(proto.shape), event_dim))
        e = pyro.sample("{}_exponential".format(name),
                        self._wrap(dist.Exponential(one), event_dim))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: uber/pyro
Commit Name: 377e5ea45cbb669e3afc36c62cad7e381403633b
Time: 2020-03-14
Author: fritzo@uber.com
File Name: pyro/infer/reparam/stable.py
Class Name: SymmetricStableReparam
Method Name: __call__


Project Name: uber/pyro
Commit Name: 377e5ea45cbb669e3afc36c62cad7e381403633b
Time: 2020-03-14
Author: fritzo@uber.com
File Name: pyro/infer/reparam/stable.py
Class Name: StableReparam
Method Name: __call__


Project Name: uber/pyro
Commit Name: 377e5ea45cbb669e3afc36c62cad7e381403633b
Time: 2020-03-14
Author: fritzo@uber.com
File Name: pyro/infer/reparam/stable.py
Class Name: LatentStableReparam
Method Name: __call__