Skip to content

Conversation

@JanFSchulte
Copy link
Contributor

Currently, pytests fail because the tests for the keras and pytorch extension APIs are run together use the same name for the hls4ml layer class that is added, resulting in already registered errors. Fixed by making the names unique in the pytorch case.

Type of change

  • Bug fix (non-breaking change that fixes an issue)

Tests

Pytests pass now

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.

@JanFSchulte JanFSchulte added the bug label Apr 2, 2025
@vloncar vloncar merged commit ec937d2 into main Apr 2, 2025
3 of 5 checks passed
@vloncar vloncar deleted the torchExtensionTestFix branch April 2, 2025 12:57
laurilaatu pushed a commit to laurilaatu/hls4ml that referenced this pull request May 20, 2025
…achinelearning#1255)

* use unique name for hls4ml layer in pytorch extension api test

* add annotation and update docs for pytorch extension API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants