[RFC] Decouple fast pass functions (#46469)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46469
There are some "fast_pass" function calls, where the symbols in `ATen/native` are directly referenced from outside of native at linking stage. This PR is to decouple one of the fast pass from native, while keeping the same functionality. `scalar_to_tensor` is included through `ATen/ATen.h`, which could be referenced by any cpp file including this header.
ghstack-source-id: 114485740
Test Plan: CI
Reviewed By: ezyang
Differential Revision: D24361863
fbshipit-source-id: 28d658688687b6cde286a6e6933ab33a4b3cf9ec