triggerflow 0.1.11__py3-none-any.whl → 0.1.12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- triggerflow/core.py +3 -8
- {triggerflow-0.1.11.dist-info → triggerflow-0.1.12.dist-info}/METADATA +1 -1
- {triggerflow-0.1.11.dist-info → triggerflow-0.1.12.dist-info}/RECORD +5 -5
- {triggerflow-0.1.11.dist-info → triggerflow-0.1.12.dist-info}/WHEEL +0 -0
- {triggerflow-0.1.11.dist-info → triggerflow-0.1.12.dist-info}/top_level.txt +0 -0
triggerflow/core.py
CHANGED
|
@@ -116,28 +116,23 @@ class ConiferStrategy(CompilerStrategy):
|
|
|
116
116
|
|
|
117
117
|
def compile(self, model, workspace: Path, config: Optional[Dict] = None, **kwargs) -> Any:
|
|
118
118
|
import conifer
|
|
119
|
-
import os
|
|
120
119
|
import shutil
|
|
121
120
|
import warnings
|
|
122
121
|
|
|
123
122
|
firmware_dir = workspace / "firmware"
|
|
124
123
|
firmware_dir.mkdir(exist_ok=True)
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
project_name = kwargs.pop('project_name', None)
|
|
128
124
|
|
|
129
125
|
cfg = config or conifer.backends.xilinxhls.auto_config()
|
|
130
126
|
cfg['OutputDir'] = str(firmware_dir)
|
|
131
|
-
|
|
127
|
+
|
|
128
|
+
for key, value in kwargs.items():
|
|
129
|
+
cfg[key] = value
|
|
132
130
|
|
|
133
131
|
firmware_model = conifer.converters.convert_from_xgboost(
|
|
134
132
|
model,
|
|
135
133
|
config=cfg
|
|
136
134
|
)
|
|
137
135
|
|
|
138
|
-
if project_name:
|
|
139
|
-
firmware_model.config.project_name = project_name
|
|
140
|
-
|
|
141
136
|
firmware_model.compile()
|
|
142
137
|
if shutil.which("vivado") is not None:
|
|
143
138
|
firmware_model.build()
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
triggerflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
triggerflow/core.py,sha256=
|
|
2
|
+
triggerflow/core.py,sha256=iOfcAxTWYNr5T0GJYSAUDLWY31hgE4QoNIULbzfw1U8,20435
|
|
3
3
|
triggerflow/mlflow_wrapper.py,sha256=mT15nSvMGqY9Wxq_L6tyNjGQ0Wy0wjn6hmuk3v43HWs,10692
|
|
4
4
|
triggerflow/templates/makefile,sha256=VL39isTUBewrs8zTSDzdP6LLln7zpGoCZnLadpMu7CA,808
|
|
5
5
|
triggerflow/templates/makefile_version,sha256=Tmu0tyAopJbiBQVMMOa6l2Cz5GkEn20mwgzIi0CfhyM,338
|
|
6
6
|
triggerflow/templates/model_template.cpp,sha256=eGwY5ca_HgjoIvqorOBPSJspP0wngpjJheq3meb48r4,1616
|
|
7
7
|
triggerflow/templates/scales.h,sha256=5bq6lVF36SRQKE2zg9RpBG6K5orpPlnJ8g125nbtFow,365
|
|
8
|
-
triggerflow-0.1.
|
|
9
|
-
triggerflow-0.1.
|
|
10
|
-
triggerflow-0.1.
|
|
11
|
-
triggerflow-0.1.
|
|
8
|
+
triggerflow-0.1.12.dist-info/METADATA,sha256=KFZTwQ-gCZFPu8iNQHwjct14f1mL-9hM4tlA2Uo5RRE,1943
|
|
9
|
+
triggerflow-0.1.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
triggerflow-0.1.12.dist-info/top_level.txt,sha256=g4M0nqpVPFZcmVmsoLExDtJFLDBK4fzobCIBqo13BEw,12
|
|
11
|
+
triggerflow-0.1.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|