Skip to content

Commit 9a5e077

Browse files
Add __all__
1 parent 799fb33 commit 9a5e077

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

hwcomponents/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,15 @@
88
get_leak_power,
99
get_model,
1010
)
11+
12+
__all__ = [
13+
"ComponentModel",
14+
"action",
15+
"get_models",
16+
"scaling",
17+
"get_area",
18+
"get_energy",
19+
"get_latency",
20+
"get_leak_power",
21+
"get_model",
22+
]

hwcomponents/scaling/__init__.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,22 @@
55
tech_node_latency,
66
tech_node_leak,
77
)
8+
9+
__all__ = [
10+
# From scalefuncs
11+
"linear",
12+
"reciprocal",
13+
"pow_base",
14+
"quadratic",
15+
"nlog_base",
16+
"nlog2n",
17+
"cacti_depth_energy",
18+
"cacti_depth_area",
19+
"cacti_depth_leak",
20+
"noscale",
21+
# From techscaling
22+
"tech_node_area",
23+
"tech_node_energy",
24+
"tech_node_latency",
25+
"tech_node_leak",
26+
]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
from .TernaryMAC import TernaryMAC
2+
3+
__all__ = ["TernaryMAC"]

0 commit comments

Comments
 (0)