-
Notifications
You must be signed in to change notification settings - Fork 632
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
Pytorch transform api #1337
Pytorch transform api #1337
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1337 +/- ##
==========================================
+ Coverage 90.07% 90.80% +0.72%
==========================================
Files 146 146
Lines 10326 10533 +207
==========================================
+ Hits 9301 9564 +263
+ Misses 1025 969 -56
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@AbhinavTuli @farizrahman4u @aliubimov Going forward please prefix all PRs and related commit logs with Jira [ticket-id]. |
dataset = ShufflingIterableDataset( | ||
mock_dataset(ds), use_local_cache=False, num_workers=4 | ||
mock_dataset(ds), use_local_cache=False, num_workers=4, tensors=tensors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit tedious but better practice to not hardcode values.
🚀 🚀 Pull Request
Checklist:
coverage-rate
upChanges
Allows another way to specify pytorch transforms using a dictionary instead of a function that is applied on the entire resultant dictionary of data returned by pytorch. The old way is still supported.
For example:-