[inductor] Respect dtype argument in ops.constant (#92093)
Consider the following example:
```python
def fn(x):
y = torch.full_like(x, 1.2, dtype=torch.int64)
return x + y
```
In eager this truncates 1.2 to 1, then adds it to `x`. However, in
inductor the literal "1.2" is used verbatim and the result is off by
0.2. This fixes the issue by respecting the dtype argument to `ops.constant`
and truncating accordingly.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/92093
Approved by: https://github.com/lezcano, https://github.com/jansel