(self, acc_on)
Set the acc_on flag according to bool argument. If set to true, the
        layer will accumulate some (preset) parameters on calls to functions
        that are decorated with the accumulates decorator. In order to use this
        feature, accumulate_updates=True must have been passed to the layer's
        allocate function

        This currently only works for a few hard coded parameters in select layers

        Arguments:
           acc_on (bool): Value to set the acc_on flag to.
Set the acc_on flag according to bool argument. If set to true, the
        layer will accumulate some (preset) parameters on calls to functions
        that are decorated with the accumulates decorator. In order to use this
        feature, accumulate_updates=True must have been passed to the layer's
        allocate function
Set the acc_on flag according to bool argument . If set to true the layer will accumulate some ( preset ) parameters on calls to functions that are decorated with the accumulates decorator . In order to use this feature accumulate_updates = True must have been passed to the layer s allocate function
def set_acc_on(self, acc_on):
        """
        Set the acc_on flag according to bool argument. If set to true, the
        layer will accumulate some (preset) parameters on calls to functions
        that are decorated with the accumulates decorator. In order to use this
        feature, accumulate_updates=True must have been passed to the layer's
        allocate function

        This currently only works for a few hard coded parameters in select layers

        Arguments:
           acc_on (bool): Value to set the acc_on flag to.
        """
        if (not hasattr(self, "accumulate_updates")):
            raise BufferError("accumulate_updates not set")
        if self.accumulate_updates:
            self.acc_on = acc_on
def set_acc_on ( self , acc_on ) : if ( not hasattr ( self , "accumulate_updates" ) ) : raise BufferError ( "accumulate_updates not set" ) if self . accumulate_updates : self . acc_on = acc_on