inductor: add params check before doing sfdp fusion (#100619)
We need to add params check before doing sfdp fusion as https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/native/transformers/attention.cpp#L544.
This PR will fix #100315 and #100318.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/100619
Approved by: https://github.com/jgong5, https://github.com/jansel