Fix minimum, maximum forward-ad formula for float32
fixes https://github.com/pytorch/pytorch/issues/69034
Test Plan:
- new tests
Fixes #ISSUE_NUMBER
Pull Request resolved: https://github.com/pytorch/pytorch/pull/75277
Approved by: https://github.com/soulitzer