Skip to content

Commit 73caba0

Browse files
[pre-commit.ci] auto fixes from pre-commit hooks
1 parent 787a27e commit 73caba0

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

part1_getting_started.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"tf.random.set_seed(seed)\n",
2828
"import os\n",
2929
"\n",
30-
"os.environ['PATH'] = os.environ['XILINX_VITIS'] + '/bin:' + os.environ['PATH']"
30+
"os.environ['PATH'] = os.environ['XILINX_VITIS'] + '/bin:' + os.environ['PATH']"
3131
]
3232
},
3333
{

part5_bdt.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
"outputs": [],
167167
"source": [
168168
"cnf = conifer.converters.convert_from_sklearn(clf, cfg)\n",
169-
"#cnf = conifer.model(clf, conifer.converters.sklearn, conifer.backends.xilinxhls, cfg)\n",
169+
"# cnf = conifer.model(clf, conifer.converters.sklearn, conifer.backends.xilinxhls, cfg)\n",
170170
"cnf.compile()"
171171
]
172172
},

part6_cnns.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,15 +670,19 @@
670670
"import plotting\n",
671671
"\n",
672672
"# First, the baseline model\n",
673-
"hls_config = hls4ml.utils.config_from_keras_model(model, granularity='name', backend='Vitis', default_precision='ap_fixed<16,6>' )\n",
673+
"hls_config = hls4ml.utils.config_from_keras_model(\n",
674+
" model, granularity='name', backend='Vitis', default_precision='ap_fixed<16,6>'\n",
675+
")\n",
674676
"\n",
675677
"plotting.print_dict(hls_config)\n",
676678
"\n",
677679
"\n",
678680
"hls_model = hls4ml.converters.convert_from_keras_model(\n",
679681
" model, hls_config=hls_config, backend='Vitis', output_dir='model_1/hls4ml_prj', part='xcu250-figd2104-2L-e'\n",
680682
")\n",
681-
"hls_model = hls4ml.converters.keras_to_hls(model, config=hls_config, output_dir='pruned_cnn', backend='Vitis', part='xcu250-figd2104-2L-e', io_type='io_stream')\n",
683+
"hls_model = hls4ml.converters.keras_to_hls(\n",
684+
" model, config=hls_config, output_dir='pruned_cnn', backend='Vitis', part='xcu250-figd2104-2L-e', io_type='io_stream'\n",
685+
")\n",
682686
"hls_model.compile()"
683687
]
684688
},

0 commit comments

Comments
 (0)