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

Custom Reader #10873

Closed
JiayiFeng opened this issue May 23, 2018 · 0 comments · Fixed by #10872
Closed

Custom Reader #10873

JiayiFeng opened this issue May 23, 2018 · 0 comments · Fixed by #10872
Assignees

Comments

@JiayiFeng
Copy link
Collaborator

JiayiFeng commented May 23, 2018

In our design, reader is used to read data from files as well as doing data preprocessing. A few basic and common data preprocessing has been implemented by us(batching, shuffling,...) in the form of DecoratedReader. However, there are unlimited ways to do data preprocessing, so it is necessary to introduce a 'custom reader', with which users are able to config their own preprocessing pipelines.

CustomReader is also a DecoartedReader. Unlike other decorated readers, a CustomReader holds its own sub-block. Users can config their own preprocessing pipelines in the sub-block, and the sub-block will be executed in the CustomReader's ReadNext() function.

@JiayiFeng JiayiFeng self-assigned this May 23, 2018
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 a pull request may close this issue.

1 participant