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

Made trainer more efficient. Loading full files instead of using TextLineDataset. #280

Merged
merged 3 commits into from
Jul 27, 2022

Conversation

jessechancy
Copy link
Contributor

No description provided.

@@ -125,7 +125,12 @@ def compute_word_piece_vocabulary(
"data as a dataset, split it, and pass it to "
"`compute_word_piece_vocabulary()` with split=False."
)
data = tf.data.TextLineDataset(data)
path_ds = tf.data.Dataset.from_tensor_slices(data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we rename data to filepaths?

@chenmoneygithub chenmoneygithub merged commit 5aeb80a into keras-team:master Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants