e1f44ea0337ace78ef8b796439139acbec60dd37,pyro/contrib/forecast/forecaster.py,HMCForecaster,forward,#HMCForecaster#Any#Any#Any#Any#,432

Before Change


                node["value"] = sample.reshape(
                    (num_samples,) + (1,) * (node["value"].dim() - sample.dim()) + sample.shape[1:])

            with PrefixReplayMessenger(self._trace):
                with PrefixConditionMessenger(self.model._prefix_condition_data):
                    with pyro.plate("particles", num_samples, dim=dim):
                        return self.model(data, covariates)

After Change


                node["value"] = sample.reshape(
                    (num_samples,) + (1,) * (node["value"].dim() - sample.dim()) + sample.shape[1:])

            with ExitStack() as stack:
                if data.size(-2) < covariates.size(-2):
                    stack.enter_context(PrefixReplayMessenger(self._trace))
                    stack.enter_context(
                        PrefixConditionMessenger(self.model._prefix_condition_data))
                with pyro.plate("particles", num_samples, dim=dim):
                    return self.model(data, covariates)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: uber/pyro
Commit Name: e1f44ea0337ace78ef8b796439139acbec60dd37
Time: 2020-09-20
Author: fritzo@uber.com
File Name: pyro/contrib/forecast/forecaster.py
Class Name: HMCForecaster
Method Name: forward


Project Name: uber/pyro
Commit Name: e1f44ea0337ace78ef8b796439139acbec60dd37
Time: 2020-09-20
Author: fritzo@uber.com
File Name: pyro/contrib/forecast/forecaster.py
Class Name: HMCForecaster
Method Name: forward


Project Name: deepmind/sonnet
Commit Name: bde4d188c147cb27b55c8b6c76bff14c0d490af8
Time: 2019-09-18
Author: tomhennigan@google.com
File Name: sonnet/src/replicator.py
Class Name: TpuReplicator
Method Name: scope


Project Name: deepmind/sonnet
Commit Name: c787becf4d41944658591ea63ff56e4661ebc3eb
Time: 2019-10-30
Author: tomhennigan@google.com
File Name: sonnet/src/replicator.py
Class Name: Replicator
Method Name: scope