Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: write file typo #1782

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions trax/predict_drop.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def main(argv):
processing_file = os.path.join(FLAGS.output_dir, 'processing_')
data_id = str(example_count + FLAGS.starting_example)
with tf.io.gfile.GFile(processing_file + data_id, 'w') as w:
w.write('Procesing started.')
w.write('Processing started.')
for repetition_id, example in multiply_examples(e):
question = example[0]
question_text = question[question.find(':') + 2:]
Expand Down Expand Up @@ -315,7 +315,7 @@ def main(argv):
with tf.io.gfile.GFile(json_to_write + data_id, 'w') as w:
w.write(json.dumps(json_record) + '\n')
with tf.io.gfile.GFile(processing_file + data_id, 'w') as w:
w.write('Procesing finished.')
w.write('Processing finished.')

with tf.io.gfile.GFile(json_to_write + '_' + str(FLAGS.starting_example),
'w') as w:
Expand Down