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

Fix passing the results of .cpu() to argument inputs. #5732

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

mzient
Copy link
Contributor

@mzient mzient commented Dec 2, 2024

Category:

Bug fix (non-breaking change which fixes an issue)

Description:

.cpu() doesn't really produce a CPU DataNode and argument inputs don't have a device.
The availability of CPU backend for argument inptu was checked when adding an operator - resulting in an error.
This PR inserts a ToCPU when dynamic executor is used.

Additional information:

Affected modules and functionalities:

Key points relevant for the review:

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
@JanuszL JanuszL self-assigned this Dec 2, 2024
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [20999403]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [20999403]: BUILD PASSED

@mzient mzient merged commit 15e7f77 into NVIDIA:main Dec 2, 2024
6 checks passed
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.

4 participants