Features/add stream support#58
Open
Mistobaan wants to merge 2 commits into
Open
Conversation
Collaborator
0aac300 to
50192cd
Compare
Collaborator
|
It seems using the TF formatting config is causing a lot of changes - probably because of the 80 character limit that Google uses. It's kinda hard to isolate the actual changes in this PR. It would be awesome if you could just have the main changes and keep the formatting as is for the unchanged parts - I believe the default yapf formatting (probably with a line limit of 120) should result in around the same formatting as the code currently has. |
sidharthms
reviewed
Jun 10, 2020
| class CacheStaleException(Exception): | ||
| r"""Raised when the dataset cache is stale and no fallback behavior is specified. | ||
| """ | ||
| pass |
Collaborator
There was a problem hiding this comment.
Why is this line deleted?
sidharthms
reviewed
Jun 10, 2020
| begin = timer() | ||
| dataset_args = {'fields': fields, 'column_naming': column_naming} | ||
| dataset = MatchingDataset(path=path, **dataset_args) | ||
| dataset = MatchingDataset(stream=stream, **dataset_args) |
Collaborator
There was a problem hiding this comment.
Maybe I'm missing something - MatchingDataset does not take "stream" as argument right?
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.
planning on contributing few more patches. It would be useful to have a standard format.
right now I used the pep8 with yapf and pylintrc (the standard tensorflow rc).
other patches contain fixes for lazy loading (ie. no fixed
.format) and for loading the datasets from a stream (used in online batch setting).Let me know if these are welcome and I will try to propose them as I work on my own repository.