(self, layername, detach=True)
Pass a fully-qualified layer name (E.g., module.submodule.conv3)
        to hook that layer and retain its output each time the model is run.
        A pair (layername, aka) can be provided, and the aka will be used
        as the key for the retained value instead of the layername.
Pass a fully-qualified layer name (E.g., module.submodule.conv3)
        to hook that layer and retain its output each time the model is run.
        A pair (layername, aka) can be provided, and the aka will be used
        as the key for the retained value instead of the layername.
Pass a fully - qualified layer name ( E . g . module . submodule . conv3 ) to hook that layer and retain its output each time the model is run . A pair ( layername aka ) can be provided and the aka will be used as the key for the retained value instead of the layername .
def retain_layer(self, layername, detach=True):
        '''
        Pass a fully-qualified layer name (E.g., module.submodule.conv3)
        to hook that layer and retain its output each time the model is run.
        A pair (layername, aka) can be provided, and the aka will be used
        as the key for the retained value instead of the layername.
        '''
        self.retain_layers([layername], detach=detach)
def retain_layer ( self , layername , detach = True ) : self . retain_layers ( [ layername ] , detach = detach )