class_docstr: Perform *pointwise* affine transform: y = loc + scale * x.
class_docstr_tok: ["Perform","*","pointwise","*","affine","transform",":","y","=","loc","+","scale","*","x","."]
code: def __init__(self, loc, scale, event_dim=0):
      super(AffineTransform, self).__init__()
      self._loc = loc
      self._scale = scale
      self.event_dim = event_dim
  
imports: import weakref
  from ..distributions.utils import _clip_prob, cached_property, sum_right_most
  from ...block import HybridBlock
  from ....None import np, npx
label_desc: Use image node_id 1 to create a new AffineTransform object from inherited base classes: Transformation with example: obj = AffineTransform(loc, scale, event_dim)