class_docstr: Squashes real-valued inputs to match a BoundedArraySpec.
code: def __call__(self, inputs: jnp.ndarray) -> jnp.ndarray:
      scale = self.spec.maximum - self.spec.minimum
      offset = self.spec.minimum
      inputs = lax.tanh(inputs)  # [-1, 1]
      inputs = 0.5 * (inputs + 1.0)  # [0, 1]
      output = inputs * scale + offset  # [minimum, maximum]
      return output
  
file_path: acme/acme/jax/networks/rescaling.py
imports: import dataclasses
  from acme import specs
  from jax import lax
  import jax.numpy
label_desc: Use image node_id 1 for calling the TanhToSpec obj's underlying member method code with example usage: obj.__call__(inputs) and returns: output