[pytorch] Inline std::forward definition (#85255)
Summary: Alternative (probably better) solution to the problem laid out in D39562394.
Test Plan: CI should be green.
Differential Revision: D39612710
Pull Request resolved: https://github.com/pytorch/pytorch/pull/85255
Approved by: https://github.com/ezyang