Skip to content

Fix NZFLOP calculation for Add#108

Merged
vikaskurapati merged 4 commits into
masterfrom
davschneller/add-nzflops
May 19, 2026
Merged

Fix NZFLOP calculation for Add#108
vikaskurapati merged 4 commits into
masterfrom
davschneller/add-nzflops

Conversation

@davschneller
Copy link
Copy Markdown
Contributor

The operands weren't broadcasted/permuted yet; thus sometimes causing negative NZ-FLOP even before #106 . (i.e. because their sparsity pattern was much smaller than the target sparsity pattern; thus the "subtract-all-adds-to-zero" correction over-corrected the result)

Copy link
Copy Markdown
Contributor

@vikaskurapati vikaskurapati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add the relevant test for it? We should be good to go after that.

AI-generated. Model used: Opus 4.7
@vikaskurapati vikaskurapati merged commit e3196df into master May 19, 2026
12 checks passed
@vikaskurapati vikaskurapati deleted the davschneller/add-nzflops branch May 19, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants