[ONNX] Fix onnx logical functions' dtype (#79339)
Part of #79263
Before: output bool is casted back to input's dtype.
After: no longer casted back.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79339
Approved by: https://github.com/BowenBao