(self, layernames)
Removes a list of layers from the set retained.
Removes a list of layers from the set retained.
Removes a list of layers from the set retained .
def stop_retaining_layers(self, layernames):
        '''
        Removes a list of layers from the set retained.
        '''
        self.add_hooks(layernames)
        for layername in layernames:
            aka = layername
            if not isinstance(aka, str):
                layername, aka = layername
            if aka in self._retained:
                del self._retained[aka]
                del self._detach_retained[aka]
def stop_retaining_layers ( self , layernames ) : self . add_hooks ( layernames ) for layername in layernames : aka = layername if not isinstance ( aka , str ) : layername , aka = layername if aka in self . _retained : del self . _retained [ aka ] del self . _detach_retained [ aka ]