triggerflow 0.1.10__py3-none-any.whl → 0.1.11__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 CHANGED
@@ -111,7 +111,6 @@ class HLS4MLStrategy(CompilerStrategy):
111
111
  firmware_model.compile()
112
112
  return firmware_model
113
113
 
114
-
115
114
  class ConiferStrategy(CompilerStrategy):
116
115
  """Conifer compilation strategy for XGBoost models"""
117
116
 
@@ -124,13 +123,11 @@ class ConiferStrategy(CompilerStrategy):
124
123
  firmware_dir = workspace / "firmware"
125
124
  firmware_dir.mkdir(exist_ok=True)
126
125
 
126
+
127
+ project_name = kwargs.pop('project_name', None)
128
+
127
129
  cfg = config or conifer.backends.xilinxhls.auto_config()
128
130
  cfg['OutputDir'] = str(firmware_dir)
129
-
130
- project_name = kwargs.pop('ProjectName', None)
131
- if project_name:
132
- cfg['ProjectName'] = project_name
133
-
134
131
  cfg.update(kwargs)
135
132
 
136
133
  firmware_model = conifer.converters.convert_from_xgboost(
@@ -138,6 +135,9 @@ class ConiferStrategy(CompilerStrategy):
138
135
  config=cfg
139
136
  )
140
137
 
138
+ if project_name:
139
+ firmware_model.config.project_name = project_name
140
+
141
141
  firmware_model.compile()
142
142
  if shutil.which("vivado") is not None:
143
143
  firmware_model.build()
@@ -146,14 +146,6 @@ class ConiferStrategy(CompilerStrategy):
146
146
 
147
147
  firmware_model.save(firmware_dir / "firmware_model.fml")
148
148
  return firmware_model
149
-
150
- def load_compiled_model(self, workspace: Path) -> Any:
151
- from conifer import load_model
152
-
153
- firmware_model = load_model(workspace / "firmware_model.fml")
154
- firmware_model.compile()
155
- return firmware_model
156
-
157
149
 
158
150
  class DA4MLStrategy(CompilerStrategy):
159
151
  """DA4ML compilation strategy (placeholder)"""
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: triggerflow
3
- Version: 0.1.10
3
+ Version: 0.1.11
4
4
  Summary: Utilities for ML models targeting hardware triggers
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: MIT License
7
7
  Classifier: Operating System :: OS Independent
8
- Requires-Python: >=3.10
8
+ Requires-Python: >=3.11
9
9
  Description-Content-Type: text/markdown
10
10
  Requires-Dist: mlflow>=2.0
11
11
 
@@ -1,11 +1,11 @@
1
1
  triggerflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- triggerflow/core.py,sha256=r8W45DZlU0OFRCVdgIT288ddSIaW-IGpHnxJTsHTgNo,20781
2
+ triggerflow/core.py,sha256=xf-jXhTChnJfanZWuIdqHzDeOm_nQl7E1NIDOn5yplE,20546
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.10.dist-info/METADATA,sha256=oQzf59103Rt6p1EAcf-Ymx0jocpRaPIs5J38wQdLl68,1943
9
- triggerflow-0.1.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
- triggerflow-0.1.10.dist-info/top_level.txt,sha256=g4M0nqpVPFZcmVmsoLExDtJFLDBK4fzobCIBqo13BEw,12
11
- triggerflow-0.1.10.dist-info/RECORD,,
8
+ triggerflow-0.1.11.dist-info/METADATA,sha256=07alh7WTRzNRKEbxXmJHc0g6ABevkjiyPR5FeFX5OLg,1943
9
+ triggerflow-0.1.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
+ triggerflow-0.1.11.dist-info/top_level.txt,sha256=g4M0nqpVPFZcmVmsoLExDtJFLDBK4fzobCIBqo13BEw,12
11
+ triggerflow-0.1.11.dist-info/RECORD,,