Haaribo's picture
commit from qixuan
dc96f30
raw
history blame contribute delete
267 Bytes
import torch
from pathlib import Path
dir=Path.home() / f"tmp/resnet50/CUB2011/123456/"
dic=torch.load(dir/ f"SlDD_Selection_50.pt")
print (dic)
#if 'linear.selection' in dic.keys():
#print("key 'linear.selection' exist")
#else:
#print("no such key")