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 Inference n_cpus overwritten issue #293

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Conversation

yihming
Copy link
Contributor

@yihming yihming commented Jun 13, 2024

Reference Issue or PRs

This PR is to fix Issue #288 .

What does your PR implement? Be specific.

The current initialization of DeseqDataSet always overwrites its Inference object's n_cpus. So no matter which value is specified for n_cpus when declaring an Inference object, when passed to DeseqDataSet, its n_cpus is always overwritten to use all available vCPUs.

My implementation just restricts that Inference's n_cpus can only be overwritten if DeseqDataSet's n_cpus is not None.

@yihming yihming requested a review from a user June 13, 2024 02:06
@yihming yihming changed the title Fix DefaultInference n_cpus issue Fix Inference n_cpus overwritten issue Jun 13, 2024
Copy link
Collaborator

@umarteauowkin umarteauowkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry got it

@umarteauowkin umarteauowkin merged commit 0d247ed into owkin:main Jun 13, 2024
10 checks passed
@umarteauowkin
Copy link
Collaborator

Thanks a lot @yihming :)

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