only apply domain eps for floating and complex types (#97010)
As discussed in https://github.com/pytorch/pytorch/pull/96124#issuecomment-1471973352.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97010
Approved by: https://github.com/mruberry