pyro/infer/smcfilter.py

Killed 0 out of 2 mutants

Survived

Survived mutation testing. These mutants show holes in your test suite.

Mutant 360

--- pyro/infer/smcfilter.py
+++ pyro/infer/smcfilter.py
@@ -88,7 +88,6 @@
         return {key: dist.Empirical(value, self.state._log_weights)
                 for key, value in self.state.items()}
 
-    @torch.no_grad()
     def _update_weights(self, model_trace, guide_trace):
         # w_t <-w_{t-1}*p(y_t|z_t) * p(z_t|z_t-1)/q(z_t)
 

Mutant 361

--- pyro/infer/smcfilter.py
+++ pyro/infer/smcfilter.py
@@ -139,7 +139,6 @@
         self._log_weights = torch.zeros(num_particles)
         self._locked = False
 
-    @contextlib.contextmanager
     def _lock(self):
         self._locked = True
         try: