onnxruntime
682936c1 - Validate DynamicQuantizeLSTM recurrence quantization parameter shapes (#29254)

Commit
96 days ago
Validate DynamicQuantizeLSTM recurrence quantization parameter shapes (#29254) ### Description The `R_zero_point` / `R_scale` (recurrence) quantization-parameter shape validation in `DynamicQuantizeLSTM` was inadvertently checking the `W` (input) quantization parameters instead of the `R` ones. This change validates the `R` parameters' own shapes symmetrically with `W`, so malformed recurrence quantization parameters are rejected with a clear error. ### Changes - Fix the shape checks so `R_zero_point` and `R_scale` are validated against the `R` tensor's expected shape (previously bound to the `W` tensor). - Add two expect-failure unit tests covering inconsistent recurrence zero-point and scale shapes. ### Motivation Improves input validation and error diagnostics for malformed `DynamicQuantizeLSTM` recurrence quantization parameters. CPU-only; no behavior change for valid inputs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Author
Parents
Loading