class_docstr: Backward-marginal implementation of product, using inclusion-exclusion.
class_docstr_tok: ["Backward-marginal","implementation","of","product",",","using","inclusion-exclusion","."]
code: def __init__(self, ring, term, ordinal, result):
      self.ring = ring
      self.term = term
      self.ordinal = ordinal
      self.result = weakref.ref(result)
  
imports: import weakref
  from abc import ABCMeta, abstractmethod
  import torch
  from pyro.ops.einsum import contract
  from pyro.ops.einsum.adjoint import SAMPLE_SYMBOL, Backward
  from pyro.util import ignore_jit_warnings
label_desc: Use image node_id 1 to create a new _MarginalProductBackward object from inherited base classes: Backward with example: obj = _MarginalProductBackward(ring, term, ordinal, result)