class_docstr: Sonnet module rescaling inputs in [-1, 1] to match a BoundedArraySpec.
class_docstr_tok: ["Sonnet","module","rescaling","inputs","in","[","-1",",","1","]","to","match","a","BoundedArraySpec","."]
code: def __call__(self, inputs: tf.Tensor) -> tf.Tensor:
      inputs = 0.5 * (inputs + 1.0)  # [0, 1]
      output = inputs * self._scale + self._offset  # [minimum, maximum]
  
      return output
  
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 2 for calling the RescaleToSpec obj's underlying member method code with example usage: obj.__call__(inputs) and returns: output