Add some forward AD formulas (#69384)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/69384
Test Plan: Imported from OSS
Reviewed By: albanD
Differential Revision: D33020602
Pulled By: soulitzer
fbshipit-source-id: a92dd243f2b5b21fe277b0bb17bcd61dfe5a0d67