class_docstr: Class for composing individual encoding stages.
  
  This class provides functionality for arbitrarily composing individual
  encoding stages (implementations of `EncodingStageInterface` or
  `AdaptiveEncodingStageInterface`) into a tree, where an output `Tensor` of an
  encoding stage can be further encoded by another encoding stage.
  
  The interface is similar to that of `AdaptiveEncodingStageInterface`, with the
  additional methods `decode_before_sum` and `decode_after_sum`. These methods
  split the decoding functionality to two parts, based on commutativity with
  summation.
  
  Similar to the `AdaptiveEncodingStageInterface`, the methods are designed to
  be functional transformations. That means, for instance, that the
  `initial_state` and `update_state` methods do not modify any underlying state.
  Rather, the user of the `Encoder` class is responsible for storing any values
  if necessary, and providing them back to appropriate methods of this class.
docstr: `True/False` based on whether the `Encoder` commutes with sum.
  
  This property will return `True` iff the entire composition of encoding
  stages controlled by this object commutes with sum. That is, the stage
  wrapped by this object commutes with sum, and each of its children also
  `fully_commutes_with_sum`.
  
  Returns:
    A boolean, `True` iff the `Encoder` commutes with sum.
docstr_tok: ["`","True\/False","`","based","on","whether","the","`","Encoder","`","commutes","with","sum",".","This","property","will","return","`","True","`","iff","the","entire","composition","of","encoding","stages","controlled","by","this","object","commutes","with","sum",".","That","is",",","the","stage","wrapped","by","this","object","commutes","with","sum",",","and","each","of","its","children","also","`","fully_commutes_with_sum","`",".","Returns",":","A","boolean",",","`","True","`","iff","the","`","Encoder","`","commutes","with","sum","."]
code: def fully_commutes_with_sum(self):
      """`True/False` based on whether the `Encoder` commutes with sum.
  
      This property will return `True` iff the entire composition of encoding
      stages controlled by this object commutes with sum. That is, the stage
      wrapped by this object commutes with sum, and each of its children also
      `fully_commutes_with_sum`.
  
      Returns:
        A boolean, `True` iff the `Encoder` commutes with sum.
      """
      result = True
      for encoder in six.itervalues(self.children):
          result &= encoder.fully_commutes_with_sum
      return result & self.stage.commutes_with_sum
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import six
  import tensorflow
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.core import encoding_stage
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.utils import py_utils
label_desc: Use image node_id 2 for calling the Encoder obj's underlying member method code with example usage: obj.fully_commutes_with_sum() and returns: unknown