Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ModelTC/LightX2V
/ is_module_installed
Function
is_module_installed
app/utils/model_utils.py:32–35 ·
view source on GitHub ↗
检查模块是否已安装
(module_name)
Source
from the content-addressed store, hash-verified
30
31
32
def
is_module_installed(module_name):
33
""
"检查模块是否已安装"
""
34
spec = importlib.util.find_spec(module_name)
35
return
spec is not None
36
37
38
def
get_available_quant_ops():
Callers
2
get_available_quant_ops
Function · 0.85
get_available_attn_ops
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected