class_docstr: HiFiC Model class.
class_docstr_tok: ["HiFiC","Model","class","."]
docstr: Compute pass through decoder.
  
  Args:
    decoder_in: Input to decoder transform.
    image_shape: Tuple (height, width) of the image_shape
    output_shape: Desired output shape.
  
  Returns:
    Tuple (reconstruction (in [0, 255],
           reconstruction_scaled (in [0, 1]),
           residual_scaled (in [-1, 1]) if it exists else None).
docstr_tok: ["Compute","pass","through","decoder",".","Args",":","decoder_in",":","Input","to","decoder","transform",".","image_shape",":","Tuple","(","height",",","width",")","of","the","image_shape","output_shape",":","Desired","output","shape",".","Returns",":","Tuple","(","reconstruction","(","in","[","0",",","255","]",",","reconstruction_scaled","(","in","[","0",",","1","]",")",",","residual_scaled","(","in","[","-1",",","1","]",")","if","it","exists","else","None",")","."]
code: def _compute_reconstruction(
      self, decoder_in, image_shape, output_shape
  ):
      """Compute pass through decoder.
  
      Args:
        decoder_in: Input to decoder transform.
        image_shape: Tuple (height, width) of the image_shape
        output_shape: Desired output shape.
  
      Returns:
        Tuple (reconstruction (in [0, 255],
               reconstruction_scaled (in [0, 1]),
               residual_scaled (in [-1, 1]) if it exists else None).
      """
      reconstruction_scaled = self._decoder(
          decoder_in, training=self.training
      )
  
      with tf.name_scope("undo_padding"):
          height, width = image_shape[0], image_shape[1]
          reconstruction_scaled = reconstruction_scaled[
              :, :height, :width, :
          ]
  
      reconstruction_scaled.set_shape(output_shape)
      with tf.name_scope("re_scale"):
          reconstruction = reconstruction_scaled * 255.0
  
      return reconstruction, reconstruction_scaled
  
imports: import collections
  import glob
  import itertools
  from compare_gan.gans import loss_lib
  import tensorflow.compat.v1
  import tensorflow_datasets
  from hific import archs
  from hific import helpers
  from hific.helpers import ModelMode
  from hific.helpers import ModelType
  from hific.helpers import TFDSArguments
label_desc: Use image node_id 20 for calling the HiFiC obj's underlying member method code with example usage: obj._compute_reconstruction(decoder_in, image_shape, output_shape) and returns: reconstruction,  reconstruction_scaled