parameters: (self, encoded_tensors, decode_params, shape, name=None)
docstring: Decodes the part of encoded representation not commuting with sum.
  
      This method represents part of the whole decoding logic, which does not
      commute with sum. It can be an identity (if everything commutes with sum),
      the full decoding (if nothing commutes with sum), or a partial decoding.
  
      Args:
        encoded_tensors: A dictionary representing the encoded value. The
          structure needs to be the corresponding return structure of the `encode`
          method.
        decode_params: A dictionary containing the parameters needed for the
          decoding. The structure needs to be the corresponding return structure
          of the `get_params` method.
        shape: A dictionary with the input shapes provided to the `encode` methods
          of individual encoding stages. The structure needs to be the
          corresponding return structure of the `encode` method.
        name: `string`, name of the operation.
  
      Returns:
        If `self.stage.commutes_with_sum` is `False`, returns a single decoded
        `Tensor`. If it is `True`, returns partially decoded `encoded_tensors`,
        i.e., dictionary with the same structure up to the part which does commute
        with sum. This structure is also the expected input to the
        `decode_after_sum` method.
docstring_summary: Decodes the part of encoded representation not commuting with sum.
docstring_tokens: Decodes the part of encoded representation not commuting with sum .
function: def decode_before_sum(self, encoded_tensors, decode_params, shape, name=None):
      """Decodes the part of encoded representation not commuting with sum.
  
      This method represents part of the whole decoding logic, which does not
      commute with sum. It can be an identity (if everything commutes with sum),
      the full decoding (if nothing commutes with sum), or a partial decoding.
  
      Args:
        encoded_tensors: A dictionary representing the encoded value. The
          structure needs to be the corresponding return structure of the `encode`
          method.
        decode_params: A dictionary containing the parameters needed for the
          decoding. The structure needs to be the corresponding return structure
          of the `get_params` method.
        shape: A dictionary with the input shapes provided to the `encode` methods
          of individual encoding stages. The structure needs to be the
          corresponding return structure of the `encode` method.
        name: `string`, name of the operation.
  
      Returns:
        If `self.stage.commutes_with_sum` is `False`, returns a single decoded
        `Tensor`. If it is `True`, returns partially decoded `encoded_tensors`,
        i.e., dictionary with the same structure up to the part which does commute
        with sum. This structure is also the expected input to the
        `decode_after_sum` method.
      """
      values = (
          tf.nest.flatten(shape) + tf.nest.flatten(decode_params) +
          tf.nest.flatten(encoded_tensors))
      with tf.compat.v1.name_scope(name, 'encoder_decode_before_sum', values):
        return self._decode_before_sum_impl(
            encoded_tensors, decode_params, shape, force_decode=False)
function_tokens: def decode_before_sum ( self , encoded_tensors , decode_params , shape , name = None ) : values = ( tf . nest . flatten ( shape ) + tf . nest . flatten ( decode_params ) + tf . nest . flatten ( encoded_tensors ) ) with tf . compat . v1 . name_scope ( name , 'encoder_decode_before_sum' , values ) : return self . _decode_before_sum_impl ( encoded_tensors , decode_params , shape , force_decode = False )