microsoft / CodeXGLUE

CodeXGLUE
MIT License
1.5k stars 363 forks source link

idx_file.txt is not effectively updated with the current epoch. #177

Open cridin1 opened 8 months ago

cridin1 commented 8 months ago

When saving the idx_file.txt that keeps track of epochs already done, it is always passed 0 as the saved epoch:

idx_file = os.path.join(last_output_dir, 'idx_file.txt')
with open(idx_file, 'w', encoding='utf-8') as idxf:
    idxf.write(str(0) + '\n')