[PyTorch] Optimize intrusive_ptr(TTarget*) ctor (pybind) (#57053)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57053
This ctor is intended for pybind use. It increments weakcount when creating a strong reference, which is only correct if you know that the value was previously zero. So, I consolidated make() with this ctor.
ghstack-source-id: 127537070
Test Plan: existing CI
Reviewed By: ezyang
Differential Revision: D28037206
fbshipit-source-id: eec57a99e3e032830f156c1e6258760f6465137b