inductor: add input type check for fuse_attention (#99296)
For TIMM ```xcit_large_24_p8_224```, the scale factor is a tensor(https://github.com/huggingface/pytorch-image-models/blob/main/timm/models/xcit.py#L205), and ```scaled_dot_product_attention``` doesn't support it, this PR will add a check which only does the fusion when the scale factor is float/int value.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/99296
Approved by: https://github.com/jansel, https://github.com/jgong5