Skip to content

Purpose behind optional imports #162

Answered by MMelQin
jpcenteno80 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the question.

optional_import is used both in MONAI and MONAI Deploy App SDK, so that the package themselves when built/published do not contain those dependent packages, e.g. an application is built to perform classic image processing from a DICOM study, no need to use PyTorch for inference, hence no need to force PyTorch package be in the App SDK.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jpcenteno80
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants