René's URL Explorer Experiment


Title: `test_softmax.py` does not test `argmax` and `latency` implementations; `latency` fails · Issue #1443 · fastmachinelearning/hls4ml · GitHub

Open Graph Title: `test_softmax.py` does not test `argmax` and `latency` implementations; `latency` fails · Issue #1443 · fastmachinelearning/hls4ml

X Title: `test_softmax.py` does not test `argmax` and `latency` implementations; `latency` fails · Issue #1443 · fastmachinelearning/hls4ml

Description: Quick summary test_softmax.py does not actually test non-default implementations (argmax and latency). If we fix that, tests for latency fail, reporting low accuracy. Details Steps to Reproduce Clone the hls4ml repository Checkout the ma...

Open Graph Description: Quick summary test_softmax.py does not actually test non-default implementations (argmax and latency). If we fix that, tests for latency fail, reporting low accuracy. Details Steps to Reproduce Clo...

X Description: Quick summary test_softmax.py does not actually test non-default implementations (argmax and latency). If we fix that, tests for latency fail, reporting low accuracy. Details Steps to Reproduce Clo...

Opengraph URL: https://github.com/fastmachinelearning/hls4ml/issues/1443

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_softmax.py` does not test `argmax` and `latency` implementations; `latency` fails","articleBody":"## Quick summary\n1. `test_softmax.py` does not actually test non-default implementations (`argmax` and `latency`).\n2. If we fix that, tests for `latency` fail, reporting low accuracy.\n\n## Details\n\n### Steps to Reproduce\n\n1. Clone the hls4ml repository\n2. Checkout the main branch, commit hash: 6900257f\n3. Run `pytest test/pytest/test_softmax.py`\n4. Go e.g. to `test/pytest/test_softmax_test_softmax_9,6-input_shape6-18,8-io_parallel-False-latency-Vivado/parameters.h`, line 29, see:\n```\n    static const nnet::softmax_implementation implementation = nnet::softmax_implementation::stable;\n```\ninstead of expected `nnet::softmax_implementation::latency`.\n\n5. Now, if we replace the line\nhttps://github.com/fastmachinelearning/hls4ml/blob/6900257ff794958b834afbaa41e7c75821d3094e/test/pytest/test_softmax.py#L47\nwith\n```\n    cfg['LayerName']['softmax']['implementation'] = strategy\n```\nthen all `latency` tests fail with messages like:\n```\nAccuracy hls4ml relative to keras: 0.1908\n```\n\n6. Now, if we replace https://github.com/fastmachinelearning/hls4ml/blob/6900257ff794958b834afbaa41e7c75821d3094e/test/pytest/test_softmax.py#L19\nwith\n```\n    return np.clip(d, -32, 0)\n```\nthe the tests pass.\n\n(Catapult backend fails on my laptop because it doesn't create .so file, but that's unrelated).","author":{"url":"https://github.com/vasdommes","@type":"Person","name":"vasdommes"},"datePublished":"2026-02-19T21:00:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1443/hls4ml/issues/1443"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:28b93832-df17-bb41-7279-68dd3a367b15
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCC78:1B1570:A8C8A:E71B0:6A4BBFDD
html-safe-nonceea846fb6cb426368cda3ff8750470298f55500df08afa815b51aee1495371a67
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzc4OjFCMTU3MDpBOEM4QTpFNzFCMDo2QTRCQkZERCIsInZpc2l0b3JfaWQiOiIyOTI2MTM0OTY1NDEzMDY4NzY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacebf743130fd7ab90c18764d3c6291e621c10da8cbe93ab304917482f3125c111
hovercard-subject-tagissue:3965078950
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/fastmachinelearning/hls4ml/1443/issue_layout
twitter:imagehttps://opengraph.githubassets.com/109958bbb7f0f7180c7b88c24ebe9339fe364c6828e49e4cc84173bf33154b46/fastmachinelearning/hls4ml/issues/1443
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/109958bbb7f0f7180c7b88c24ebe9339fe364c6828e49e4cc84173bf33154b46/fastmachinelearning/hls4ml/issues/1443
og:image:altQuick summary test_softmax.py does not actually test non-default implementations (argmax and latency). If we fix that, tests for latency fail, reporting low accuracy. Details Steps to Reproduce Clo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevasdommes
hostnamegithub.com
expected-hostnamegithub.com
Noneae1c14875555a1dd92bdef45baa6dd9aa796df891e4e471989f7117fe3139fc1
turbo-cache-controlno-preview
go-importgithub.com/fastmachinelearning/hls4ml git https://github.com/fastmachinelearning/hls4ml.git
octolytics-dimension-user_id33101568
octolytics-dimension-user_loginfastmachinelearning
octolytics-dimension-repository_id108329371
octolytics-dimension-repository_nwofastmachinelearning/hls4ml
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id108329371
octolytics-dimension-repository_network_root_nwofastmachinelearning/hls4ml
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb15c57117aeff522995a9578e1185f6c45d6c562
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/fastmachinelearning/hls4ml/issues/1443#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastmachinelearning%2Fhls4ml%2Fissues%2F1443
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastmachinelearning%2Fhls4ml%2Fissues%2F1443
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=fastmachinelearning%2Fhls4ml
Reloadhttps://github.com/fastmachinelearning/hls4ml/issues/1443
Reloadhttps://github.com/fastmachinelearning/hls4ml/issues/1443
Reloadhttps://github.com/fastmachinelearning/hls4ml/issues/1443
Please reload this pagehttps://github.com/fastmachinelearning/hls4ml/issues/1443
fastmachinelearning https://github.com/fastmachinelearning
hls4mlhttps://github.com/fastmachinelearning/hls4ml
Notifications https://github.com/login?return_to=%2Ffastmachinelearning%2Fhls4ml
Fork 568 https://github.com/login?return_to=%2Ffastmachinelearning%2Fhls4ml
Star 2k https://github.com/login?return_to=%2Ffastmachinelearning%2Fhls4ml
Code https://github.com/fastmachinelearning/hls4ml
Issues 196 https://github.com/fastmachinelearning/hls4ml/issues
Pull requests 40 https://github.com/fastmachinelearning/hls4ml/pulls
Discussions https://github.com/fastmachinelearning/hls4ml/discussions
Actions https://github.com/fastmachinelearning/hls4ml/actions
Projects https://github.com/fastmachinelearning/hls4ml/projects
Security and quality 0 https://github.com/fastmachinelearning/hls4ml/security
Insights https://github.com/fastmachinelearning/hls4ml/pulse
Code https://github.com/fastmachinelearning/hls4ml
Issues https://github.com/fastmachinelearning/hls4ml/issues
Pull requests https://github.com/fastmachinelearning/hls4ml/pulls
Discussions https://github.com/fastmachinelearning/hls4ml/discussions
Actions https://github.com/fastmachinelearning/hls4ml/actions
Projects https://github.com/fastmachinelearning/hls4ml/projects
Security and quality https://github.com/fastmachinelearning/hls4ml/security
Insights https://github.com/fastmachinelearning/hls4ml/pulse
#1475https://github.com/fastmachinelearning/hls4ml/pull/1475
test_softmax.py does not test argmax and latency implementations; latency failshttps://github.com/fastmachinelearning/hls4ml/issues/1443#top
#1475https://github.com/fastmachinelearning/hls4ml/pull/1475
bughttps://github.com/fastmachinelearning/hls4ml/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/vasdommes
vasdommeshttps://github.com/vasdommes
on Feb 19, 2026https://github.com/fastmachinelearning/hls4ml/issues/1443#issue-3965078950
6900257https://github.com/fastmachinelearning/hls4ml/commit/6900257ff794958b834afbaa41e7c75821d3094e
hls4ml/test/pytest/test_softmax.pyhttps://github.com/fastmachinelearning/hls4ml/blob/6900257ff794958b834afbaa41e7c75821d3094e/test/pytest/test_softmax.py#L47
6900257https://github.com/fastmachinelearning/hls4ml/commit/6900257ff794958b834afbaa41e7c75821d3094e
hls4ml/test/pytest/test_softmax.pyhttps://github.com/fastmachinelearning/hls4ml/blob/6900257ff794958b834afbaa41e7c75821d3094e/test/pytest/test_softmax.py#L19
6900257https://github.com/fastmachinelearning/hls4ml/commit/6900257ff794958b834afbaa41e7c75821d3094e
bughttps://github.com/fastmachinelearning/hls4ml/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.