MCPcopy 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
32def is_module_installed(module_name):
33 """检查模块是否已安装"""
34 spec = importlib.util.find_spec(module_name)
35 return spec is not None
36
37
38def get_available_quant_ops():

Callers 2

get_available_quant_opsFunction · 0.85
get_available_attn_opsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected