class_docstr: Sometimes-active cache for ``PyroModule.__call__()`` contexts.
class_docstr_tok: ["Sometimes-active","cache","for","``","PyroModule.__call__","(",")","``","contexts","."]
code: def __init__(self):
      self.active = 0
      self.cache = {}
      self.used = False
      if _is_module_local_param_enabled():
          self.param_state = {"params": {}, "constraints": {}}
  
imports: import functools
  import inspect
  import weakref
  from collections import OrderedDict, namedtuple
  import torch
  from torch.distributions import constraints, transform_to
  import pyro
  from pyro.ops.provenance import detach_provenance
  from pyro.poutine.runtime import _PYRO_PARAM_STORE
label_desc: Use image node_id 1 to create a new _Context object  with example: obj = _Context()