I am already using this. @J_Johnson
and when i try to load net_1 for evaluation the data seems corrupted
save best model
if epoch == 0:
    save_best_val = val_data_ar[-1]
    np.save(path+"mlh_dummy_input_mean_sh.npy", adcc)
elif save_best_val > val_data_ar[-1]:
    torch.save(
        {'model_dict_1': net_1.state_dict(),  'model_dict_3':net_3.state_dict(),'model_dict_ens': net.state_dict(),
         'optimizer_dic': optimizer.state_dict(), 'epoch': epoch, 'loss': val_data_ar[-1]},
        path+"mlh_tas_save_best_sh.pt")
    save_best_val = val_data_ar[-1]
    np.save(path+"mlh_bnf_mag_96ms_" + str(epoch) + ".npy", local_dt_sp)

type or paste code here