We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 763bbcc commit 884c2d6Copy full SHA for 884c2d6
1 file changed
PyTorchUtils/PyTorchUtils.py
@@ -74,7 +74,7 @@ def importTorch(self):
74
75
def installTorch(self, askConfirmation=False):
76
"""Install PyTorch and return the ``torch`` Python module."""
77
- if askConfirmation:
+ if askConfirmation and not slicer.app.commandOptions().testingEnabled:
78
install = slicer.util.confirmOkCancelDisplay(
79
'PyTorch will be downloaded and installed now. The process might take some minutes.'
80
)
0 commit comments