Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Update hangul_model.py #71

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 hangul_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def main(label_file, tfrecords_dir, model_output_dir, num_train_epochs):

# Create training dataset input pipeline.
train_dataset = tf.data.TFRecordDataset(train_data_files) \
.map(_parse_function) \
.map(_parse_function,num_parallel_calls=tf.data.experimental.AUTOTUNE) \
.shuffle(1000) \
.repeat(num_train_epochs) \
.batch(BATCH_SIZE) \
Expand Down Expand Up @@ -264,7 +264,7 @@ def main(label_file, tfrecords_dir, model_output_dir, num_train_epochs):

# Create testing dataset input pipeline.
test_dataset = tf.data.TFRecordDataset(test_data_files) \
.map(_parse_function) \
.map(_parse_function,num_parallel_calls=tf.data.experimental.AUTOTUNE) \
.batch(BATCH_SIZE) \
.prefetch(1)

Expand Down