Open jinmang2 opened 3 years ago
import pickle with open("logits.pkl", "wb") as f: pickle.dump(logits, f, protocol=pickle.HIGHEST_PROTOCOL) with open("logits.pkl", "rb") as f: z = pickle.load(f)