Skip to content

Lack of epsilon aware comparison in NETopKV for Fp32 data type#1265

Open
morgolock wants to merge 1 commit intomainfrom
pr/topk_f32_mismatch
Open

Lack of epsilon aware comparison in NETopKV for Fp32 data type#1265
morgolock wants to merge 1 commit intomainfrom
pr/topk_f32_mismatch

Conversation

@morgolock
Copy link
Contributor

@morgolock morgolock commented Mar 4, 2026

Align NETopKV Fp32 comparison semantics with the scalar reference.

Resolves COMPMID-8829

Change-Id: I995a07e0f38587b69b0ac08ee2c85949704f0e60

@gunes-arm
Copy link
Contributor

gunes-arm commented Mar 4, 2026

I can suggest a few rewordings to the commit title and description:

fix: topkv FP32 NEON comparison epsilon mismatch#1265

Lack of epsilon aware comparison in NETopKV for Fp32 data type

Align NEON FP32 TopK comparison semantics with the scalar reference by using v > threshold + epsilon instead of a raw v > threshold. Prevents rare single-value mismatches for near-threshold floats.

Align NETopKV Fp32 comparison semantics ...

@morgolock morgolock changed the title fix: topkv FP32 NEON comparison epsilon mismatch Lack of epsilon aware comparison in NETopKV for Fp32 data type Mar 4, 2026
Copy link
Contributor

@gunes-arm gunes-arm left a comment

Choose a reason for hiding this comment

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

Just a few comments regarding the commit message. The rest looks good to me.

@morgolock morgolock force-pushed the pr/topk_f32_mismatch branch from 1ea020e to e28ca9d Compare March 4, 2026 11:47
@morgolock
Copy link
Contributor Author

I can suggest a few rewordings to the commit title and description:

fix: topkv FP32 NEON comparison epsilon mismatch#1265

Lack of epsilon aware comparison in NETopKV for Fp32 data type

Align NEON FP32 TopK comparison semantics with the scalar reference by using v > threshold + epsilon instead of a raw v > threshold. Prevents rare single-value mismatches for near-threshold floats.

Align NETopKV Fp32 comparison semantics ...

Addressed

@morgolock morgolock force-pushed the pr/topk_f32_mismatch branch from e28ca9d to 516802e Compare March 4, 2026 16:41
Align NETopKV Fp32 comparison semantics with the scalar reference.

Resolves COMPMID-8829

Change-Id: I995a07e0f38587b69b0ac08ee2c85949704f0e60
Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com>
@morgolock morgolock force-pushed the pr/topk_f32_mismatch branch from 516802e to c9853a3 Compare March 4, 2026 17:01
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