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

[pytorch] Respect PYTORCH_FLAVOR override to download libtorch #2486

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

frankfliu
Copy link
Contributor

@frankfliu frankfliu commented Mar 28, 2023

Fixes #2485

@frankfliu frankfliu requested review from zachgk and a team as code owners March 28, 2023 15:32
String flavor = Utils.getEnvOrSystemProperty("PYTORCH_FLAVOR");
if (flavor == null || flavor.isEmpty()) {
flavor = platform.getFlavor();
if (System.getProperty("os.name").startsWith("Linux")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason we're using System property here instead of platform.getOsPrefix() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are the same. no preference.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, that's what i thought just wanted to confirm.

@frankfliu frankfliu merged commit 2adeda8 into deepjavalibrary:master Mar 28, 2023
@frankfliu frankfliu deleted the pt branch March 28, 2023 18:17
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.

support for cuda 121
2 participants