The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
1.16.16
flytekit.lazy_import.lazy_module
Directory
Methods
| Method | Description |
|---|---|
is_imported() |
This function is used to check if a module has been imported by the regular import. |
lazy_module() |
This function is used to lazily import modules. |
Methods
is_imported()
def is_imported(
module_name,
)This function is used to check if a module has been imported by the regular import. Return false if module is lazy imported and not used yet.
| Parameter | Type | Description |
|---|---|---|
module_name |
lazy_module()
def lazy_module(
fullname,
)This function is used to lazily import modules. It is used in the following way:
from flytekit.lazy_import import lazy_module
sklearn = lazy_module("sklearn")
sklearn.svm.SVC()| Parameter | Type | Description |
|---|---|---|
fullname |