Skip to content

Commit

Permalink
Fix failing tests & GitHub warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bo3z committed Sep 15, 2023
1 parent 5b4488e commit 2cf919b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/advanced/model_optimization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,11 @@ Finally, optimizing Vivado DSPs is possible, given a hls4ml config:
# Note the change from ParameterEstimator to VivadoDSPEstimator
optimized_model = optimize_keras_for_hls4ml(
baseline_model, model_attributes, VivadoDSPEstimator, scheduler,
X_train, y_train, X_val, y_val, batch_size, epochs, optimizer, loss_fn, metric, increasing, rtol
X_train, y_train, X_val, y_val, batch_size, epochs,
optimizer, loss_fn, metric, increasing, rtol
)
There are two more Vivado "optimizers" - VivadoFFEstimator, aimed at reducing register utilisation and VivadoMultiObjectiveEstimator, aimed at optimising BRAM and DSP utilisation.
Note, to ensure DSPs are optimized, "unrolled" Dense multiplication must be used before synthesing HLS, by modifying the config:
.. code-block:: Python
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pytest_randomly.random_seeder =

[options.extras_require]
optimization =
keras-surgeon@https://github.com/fastmachinelearning/keras-surgeon
keras-surgeon@git+https://github.com/fastmachinelearning/keras-surgeon.git
ortools
packaging
profiling =
Expand Down

0 comments on commit 2cf919b

Please sign in to comment.