class_docstr: Sonnet module clipping inputs to within a BoundedArraySpec.
class_docstr_tok: ["Sonnet","module","clipping","inputs","to","within","a","BoundedArraySpec","."]
code: def __init__(
      self, spec: specs.BoundedArray, name: str = "clip_to_spec"
  ):
      super().__init__(name=name)
      self._min = spec.minimum
      self._max = spec.maximum
  
file_path: acme/acme/tf/networks/rescaling.py
imports: from typing import Union
  from acme import specs
  import sonnet
  import tensorflow
  import tensorflow_probability
label_desc: Use image node_id 1 to create a new ClipToSpec object from inherited base classes: snt with example: obj = ClipToSpec(spec, name)