← Back to events
ActiveAIRelease

viable/strict/1789219412: Move c10/util/TypeCast.h and overflows.h into torch/headeronly (#194781)

Photo: PyTorch Releases

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

Why it's spreading

Sources