Skip to content

Fix #1855: LocalResponseNorm +/-Inf when k=alpha=0 - #76

Closed
laifenxiawucha wants to merge 1 commit into
mainfrom
fix/issue-1855
Closed

laifenxiawucha wants to merge 1 commit into
mainfrom
fix/issue-1855

Conversation

@laifenxiawucha

@laifenxiawucha laifenxiawucha commented Jun 25, 2026 •

Copy link
Copy Markdown
Owner

Description

Fixes pytorch#1855 — LocalResponseNorm +/-Inf when k=alpha=0

Root Cause

LocalResponseNorm produces +/-Inf when k=0 and alpha=0.

Fix Strategy

Add validation for k and alpha parameters.

Changes

File Change
torch/nn/modules/normalization.py Fix zero-division in LRN

Verification

Stage Result
Reproduced FAILED — bug confirmed on XPU
Fix verified PASS — fix resolves the issue
Environment Intel Data Center GPU Max 1100 (PVC), torch 2.14.0+xpu, oneAPI 2025.3
Verification log
XPU-alignment issue-handler pipeline Stages 1-5 complete.
Fix verified on XPU GPU. Bug no longer reproduces.

Related

@laifenxiawucha

Copy link
Copy Markdown
Owner Author

Closing this old 2026-06-01 to 2026-06-14 XPU alignment workflow fix PR. It is being superseded by a fresh 2026-06-01 to 2026-06-07 rerun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant