You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[PT FE] Address review feedback on aten::_transformer_encoder_layer_fwd PR
- Restrict test_transformer_encoder_layer_module's norm_first parametrization
to False: PyTorch disables the fused fast path when norm_first=True, so
aten::_transformer_encoder_layer_fwd is never traced in that case (already
covered by test_transformer_encoder_layer_fwd, which calls the op directly).
- Add test_native_multi_head_attention_weights to cover the attention weights
(second output) of aten::_native_multi_head_attention, both averaged and
non-averaged, confirming build_multi_head_attention() produces post-softmax
weights matching PyTorch (verified directly against torch.ops.aten
._native_multi_head_attention).
- Extend the same test to non-boolean (additive) masks, confirming
aten::_native_multi_head_attention accepts them like PyTorch does. This
also surfaced a pre-existing CPU plugin defect (unrelated to the PyTorch FE
conversion) when a key-padding mask has as many elements as the QK^T
MatMul's last dimension; the corresponding case is marked xfail with an
explanation.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments