Use a dtype property in torch inductor nodes (#119227)
I usually forget to do `x.get_dtype()` and I type `x.dtype`. Similarly for `layout, device, sizes`. What do you think about making them properties?
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119227
Approved by: https://github.com/lezcano, https://github.com/jansel