(self, acc_on)
Set the acc_on flag according to bool argument for each layer.
        If a layer in the container does not support accumulate_updates
        it will be skipped.

        Arguments:
           acc_on (bool): Value to set the acc_on flag of supported layers to.
Set the acc_on flag according to bool argument for each layer.
        If a layer in the container does not support accumulate_updates
        it will be skipped.
Set the acc_on flag according to bool argument for each layer . If a layer in the container does not support accumulate_updates it will be skipped .
def set_acc_on(self, acc_on):
        """
        Set the acc_on flag according to bool argument for each layer.
        If a layer in the container does not support accumulate_updates
        it will be skipped.

        Arguments:
           acc_on (bool): Value to set the acc_on flag of supported layers to.
        """
        if (not hasattr(self, "accumulate_updates")):
            raise BufferError("accumulate_updates not set")
        for l in self.layers:
            if hasattr(l, "accumulate_updates"):
                l.set_acc_on(acc_on)
def set_acc_on ( self , acc_on ) : if ( not hasattr ( self , "accumulate_updates" ) ) : raise BufferError ( "accumulate_updates not set" ) for l in self . layers : if hasattr ( l , "accumulate_updates" ) : l . set_acc_on ( acc_on )