Skip to content

hls4ml Optimization API [Part 2]

Created by: bo3z

Description

  • Second part of hls4ml Optimization API #768
  • Introduces Dense Unrolled layers, optimising multiplications with zero in Resource strategy with RF > 1
  • Introduces additional TCL scripts, to optimise zero BRAM blocks.

Type of change

  • New feature (non-breaking change which adds functionality)
  • A new research paper code implementation
  • Fix issue #798

Tests

  • Added a new test, test_dense_unrolled that verifies dense resource layers implement avoiding zero multiplications are correct
  • Comparison with "standard" Dense Resource will be shortly available in the (updated) PR #768.

Checklist

  • I have read the guidelines for contributing.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have installed and run pre-commit on the files I edited or added.
  • I have added tests that prove my fix is effective or that my feature works.

Merge request reports