def set_eval(layer, layerinfo=layerinfo):
            "Set layer into evaluation mode if instance of `layerinfo`."
            if isinstance(layer, tuple(layerinfo)):
                layer.eval()
Set layer into evaluation mode if instance of `layerinfo`.
art/estimators/pytorch.py