viable/strict/1789219412: Move c10/util/TypeCast.h and overflows.h into torch/headeronly (#194781)
- PyTorch: 850 events in the last 90 days
- PyTorch: 839th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1789203000: [inductor] Make manual wait-user repair linear (#195616)
What happened
Summary Move TypeCast.h and overflows.h from c10/util into torch/headeronly/util under torch::headeronly , leaving the old c10/util paths as one-line forwarding includes (matching Half.h / BFloat16.h ). TypeCast.h 's report_overflow used to be a C10_API symbol defined in TypeCast.cpp so the ostringstream / throw path was not inlined into every checked_convert instantiation (see #65830 / #66721 ). Header-only code ca…
Summary assembled by rule from the sources below