OpInfo: Add opinfo for cum{min,max} and minor fixes (#54762)
Summary:
Reference: https://github.com/pytorch/pytorch/issues/54261
Pull Request resolved: https://github.com/pytorch/pytorch/pull/54762
Reviewed By: H-Huang
Differential Revision: D27390171
Pulled By: mruberry
fbshipit-source-id: 9376dafa3bd2228786756f62fed01565134228fa