Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/22811
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 0e09115 with merge base 026ca3f ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@metascroy has exported this pull request. If you are a Meta employee, you can view the originating Diff in D120017028. |
This PR needs a
|
Summary: Host replay sanitizers exposed undefined behavior when non-finite quantization results were converted to integers before clamping. Define deterministic behavior: NaN maps to the clamped zero point, positive infinity to quant_max, and negative infinity to quant_min. Clamp before integer conversion and keep scalar and ARM exceptional-value handling consistent, with regression coverage for non-finite inputs, finite overflow, zero-point clamping, and per-channel quantization. Adapted from the repair proposed in D119101166. Edits were made in fbcode; the repository commit hook mirrored them into xplat, and the mirrored changes are retained. Authored with assistance from Devmate. Differential Revision: D120017028
8c8d8af to
a5a073c
Compare
rascani
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Summary: Host replay sanitizers exposed undefined behavior when non-finite quantization results were converted to integers before clamping. Define deterministic behavior: NaN maps to the clamped zero point, positive infinity to quant_max, and negative infinity to quant_min. Clamp before integer conversion and keep scalar and ARM exceptional-value handling consistent, with regression coverage for non-finite inputs, finite overflow, zero-point clamping, and per-channel quantization. Adapted from the repair proposed in D119101166. Edits were made in fbcode; the repository commit hook mirrored them into xplat, and the mirrored changes are retained. Authored with assistance from Devmate. Reviewed By: rascani Differential Revision: D120017028
a5a073c to
f845bc6
Compare
Summary: Host replay sanitizers exposed undefined behavior when non-finite quantization results were converted to integers before clamping. Define deterministic behavior: NaN maps to the clamped zero point, positive infinity to quant_max, and negative infinity to quant_min. Clamp before integer conversion and keep scalar and ARM exceptional-value handling consistent, with regression coverage for non-finite inputs, finite overflow, zero-point clamping, and per-channel quantization. Adapted from the repair proposed in D119101166. Edits were made in fbcode; the repository commit hook mirrored them into xplat, and the mirrored changes are retained. Authored with assistance from Devmate. Reviewed By: rascani Differential Revision: D120017028
f845bc6 to
f62e5d8
Compare
Summary: Host replay sanitizers exposed undefined behavior when non-finite quantization results were converted to integers before clamping. Define deterministic behavior: NaN maps to the clamped zero point, positive infinity to quant_max, and negative infinity to quant_min. Clamp before integer conversion and keep scalar and ARM exceptional-value handling consistent, with regression coverage for non-finite inputs, finite overflow, zero-point clamping, and per-channel quantization. Adapted from the repair proposed in D119101166. Edits were made in fbcode; the repository commit hook mirrored them into xplat, and the mirrored changes are retained. Authored with assistance from Devmate. Reviewed By: rascani Differential Revision: D120017028
f62e5d8 to
0e09115
Compare
Summary:
Host replay sanitizers exposed undefined behavior when non-finite quantization results were converted to integers before clamping. Define deterministic behavior: NaN maps to the clamped zero point, positive infinity to quant_max, and negative infinity to quant_min. Clamp before integer conversion and keep scalar and ARM exceptional-value handling consistent, with regression coverage for non-finite inputs, finite overflow, zero-point clamping, and per-channel quantization.
Adapted from the repair proposed in D119101166. Edits were made in fbcode; the repository commit hook mirrored them into xplat, and the mirrored changes are retained. Authored with assistance from Devmate.
Reviewed By: rascani
Differential Revision: D120017028