-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcheck_imports.py
More file actions
43 lines (39 loc) · 981 Bytes
/
check_imports.py
File metadata and controls
43 lines (39 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import importlib
import sys
modules = [
"hypercore",
"hypercore.data",
"hypercore.datasets",
"hypercore.manifolds",
"hypercore.models",
"hypercore.nn",
"hypercore.optimizers",
"hypercore.utils",
]
submodules = [
"hypercore.data.airport",
"hypercore.data.bio-wormnet",
"hypercore.data.chameleon",
"hypercore.data.cora",
"hypercore.data.disease_lp",
"hypercore.data.disease_nc",
"hypercore.data.film",
"hypercore.data.geom-gcn",
"hypercore.data.power",
"hypercore.data.pubmed",
"hypercore.data.squirrel",
"hypercore.data.web-edu",
"hypercore.data.wiki_new",
"hypercore.nn.attention",
"hypercore.nn.conv",
"hypercore.nn.graph_conv",
"hypercore.nn.linear",
"hypercore.nn.peft",
]
all_modules = modules + submodules
for mod in all_modules:
try:
importlib.import_module(mod)
print(f"[OK] {mod}")
except Exception as e:
print(f"[FAIL] {mod}: {e}")