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

v0 of map-style dataset #96

Closed
wants to merge 0 commits into from
Closed

v0 of map-style dataset #96

wants to merge 0 commits into from

Conversation

relh
Copy link

@relh relh commented Aug 6, 2024

Hi,

I added a class that turns the IterableDataset into a Map-style Dataset.

It doesn't currently support manual sharding, or the sequence version of the TFRecordDataset.

It works for the Objectron data that I'm using though.

I'll follow up with a more full-fledged v1 soon, let me know if you can think of anything important for that.

@vahidk
Copy link
Owner

vahidk commented Aug 18, 2024

Thanks. I'd like to keep a framework agnostic core in tfrecord/reader.py and tfrecord/writer.py. So the proper way to implement this functionality would be to turn tfrecord_iterator into a class with iter support and make tfrecord_iterator call that class.

@relh
Copy link
Author

relh commented Aug 19, 2024

That makes sense! I'll refactor things to fit this

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