-
Notifications
You must be signed in to change notification settings - Fork 628
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
Introduce (experimental) DALI proxy #5726
Conversation
CI MESSAGE: [20865442]: BUILD STARTED |
CI MESSAGE: [20865442]: BUILD PASSED |
I see there are no tests except for the resnet50 example. I believe we should have normal TL0 tests as well. |
Did you test error propagation between the processes? Multiprocessing doesn't automagically propagate exceptions afaik. Maybe we should have tests to check how are the errors in particular processes reported? |
docs/examples/use_cases/pytorch/efficientnet/image_classification/dataloaders.py
Outdated
Show resolved
Hide resolved
caf2d0b
to
0472490
Compare
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.
Posting few comments as the code started moving.
I also feel like we should limit the scope of the API and hide most of the implementation.
c4a7f74
to
1a50983
Compare
CI MESSAGE: [21050826]: BUILD STARTED |
CI MESSAGE: [21050826]: BUILD FAILED |
3bdfd37
to
014032d
Compare
CI MESSAGE: [21052236]: BUILD STARTED |
CI MESSAGE: [21052236]: BUILD FAILED |
014032d
to
a802a29
Compare
CI MESSAGE: [22445006]: BUILD PASSED |
dali/python/nvidia/dali/plugin/pytorch/experimental/proxy/__init__.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Joaquin Anton Guirao <[email protected]>
e01a006
to
641e37b
Compare
CI MESSAGE: [22484757]: BUILD STARTED |
Signed-off-by: Joaquin Anton Guirao <[email protected]>
Signed-off-by: Joaquin Anton Guirao <[email protected]>
if not DALIServer._needs_conversion(obj): | ||
result = obj | ||
# Named tuple: Reconstruct using `_replace` | ||
elif hasattr(obj, "_replace") and hasattr(obj, "_fields"): |
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.
if not DALIServer._needs_conversion(obj): | |
result = obj | |
# Named tuple: Reconstruct using `_replace` | |
elif hasattr(obj, "_replace") and hasattr(obj, "_fields"): | |
# Named tuple: Reconstruct using `_replace` | |
if hasattr(obj, "_replace") and hasattr(obj, "_fields"): |
self._cache_outputs[curr_batch_id] = curr_processed_outputs | ||
return req_outputs | ||
|
||
def _need_conversion(obj, need_conversion_cache): |
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.
def _need_conversion(obj, need_conversion_cache): | |
@staticmethod | |
def _need_conversion(obj, need_conversion_cache): |
a710415
to
d59c99b
Compare
Signed-off-by: Joaquin Anton Guirao <[email protected]>
d59c99b
to
61d9264
Compare
CI MESSAGE: [22487905]: BUILD STARTED |
Comments were addressed but I did only partial review.
!build |
CI MESSAGE: [22491477]: BUILD STARTED |
CI MESSAGE: [22491477]: BUILD PASSED |
Category:
New feature
Description:
Co-author: @mdabek-nvidia
Additional information:
Affected modules and functionalities:
Key points relevant for the review:
dali/python/nvidia/dali/plugin/pytorch/proxy/__init__.py
Tests:
Checklist
Documentation
TODO
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A