(self, aka=None, clear=False)
return result
Retrieve retained data that was previously hooked by retain_layer.
        Call this after the model is run.  If clear is set, then the
        retained value will return and also cleared.
Retrieve retained data that was previously hooked by retain_layer.
        Call this after the model is run.  If clear is set, then the
        retained value will return and also cleared.
Retrieve retained data that was previously hooked by retain_layer . Call this after the model is run . If clear is set then the retained value will return and also cleared .
def retained_layer(self, aka=None, clear=False):
        '''
        Retrieve retained data that was previously hooked by retain_layer.
        Call this after the model is run.  If clear is set, then the
        retained value will return and also cleared.
        '''
        if aka is None:
            # Default to the first retained layer.
            aka = next(self._retained.keys().__iter__())
        result = self._retained[aka]
        if clear:
            self._retained[aka] = None
        return result
def retained_layer ( self , aka = None , clear = False ) : if aka is None : # Default to the first retained layer. aka = next ( self . _retained . keys ( ) . __iter__ ( ) ) result = self . _retained [ aka ] if clear : self . _retained [ aka ] = None return result