Skip to content

Make sure torch will only try to run as service when requested#576

Merged
Bishbash777 merged 1 commit intoTorchAPI:masterfrom
zznty:master
Mar 22, 2024
Merged

Make sure torch will only try to run as service when requested#576
Bishbash777 merged 1 commit intoTorchAPI:masterfrom
zznty:master

Conversation

@zznty
Copy link
Contributor

@zznty zznty commented Feb 16, 2024

Prior to this change, torch will try to run as a service if the environment is non-interactive and OS is not Windows Server 2019/2022, which is incorrect and will cause issues when being ran without GUI on other OSes.

This PR should Fix #449 by explicitly checking if process was started by services host and not the user.

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.

Running Torch not interactively in Windows 10 causes immediate shutdown upon program start

2 participants