Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Restore support for passing device in CPU-only environment #107

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

oliverholworthy
Copy link
Member

The last PR #104 changed the way the array lib was configured based on the device configured. This assumed that the device would always be set to "cpu" in a CPU-only environment (where cupy was not installed).

This PR updates the logic setting the device attribute of the loader so that it's always set to "cpu" if there is no GPU available or if the dataset is on CPU.

@edknv edknv merged commit dbf8816 into NVIDIA-Merlin:main Feb 28, 2023
oliverholworthy added a commit that referenced this pull request Mar 13, 2023
Add test for passing device to check this works on CPU
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants