Add read_text to read lines from splittable text file#397
Merged
yongtang merged 3 commits intotensorflow:masterfrom Aug 4, 2019
Merged
Add read_text to read lines from splittable text file#397yongtang merged 3 commits intotensorflow:masterfrom
yongtang merged 3 commits intotensorflow:masterfrom
Conversation
0705db4 to
902867a
Compare
This PR is part of the effort to rework on Dataset with large files reading into Tensors first to speed up performance. See 382 and 366 for related discussions. Summary: 1) read_text is able to read a text file with in the range of [offset, offset+length] 2) that gives us the Splittable text file where we could read file in chunks (similar to hadoop) 3) the plan is to read a text file in big chunks and then wire up with tf.data.Dataset 4) read_text is a primitive C++ op so it could be used in tf.data, and it could be used in other places. Note once PR 393 is merged I will convert TextDataset to use this ops (and remove the native C++ implementation of TextDataset) Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Member
Author
|
Will merge this PR soon as well. It exposes a primitive kernel op |
i-ony
pushed a commit
to i-ony/io
that referenced
this pull request
Feb 8, 2021
* Add read_text to read lines from splittable text file This PR is part of the effort to rework on Dataset with large files reading into Tensors first to speed up performance. See 382 and 366 for related discussions. Summary: 1) read_text is able to read a text file with in the range of [offset, offset+length] 2) that gives us the Splittable text file where we could read file in chunks (similar to hadoop) 3) the plan is to read a text file in big chunks and then wire up with tf.data.Dataset 4) read_text is a primitive C++ op so it could be used in tf.data, and it could be used in other places. Note once PR 393 is merged I will convert TextDataset to use this ops (and remove the native C++ implementation of TextDataset) Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Use read_text to implement TextDataset Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix python 3 failure Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is part of the effort to rework on Dataset with large files reading into Tensors first to speed up performance. See #382 and #366 for related discussions.
Summary:
Signed-off-by: Yong Tang yong.tang.github@outlook.com