(self)
Unhooks all hooked layers in the model.
Unhooks all hooked layers in the model.
Unhooks all hooked layers in the model .
def close(self):
        '''
        Unhooks all hooked layers in the model.
        '''
        for aka in list(self._old_forward.keys()):
            self._unhook_layer(aka)
        assert len(self._old_forward) == 0
def close ( self ) : for aka in list ( self . _old_forward . keys ( ) ) : self . _unhook_layer ( aka ) assert len ( self . _old_forward ) == 0