viable/strict/1789219412: Move c10/util/TypeCast.h and overflows.h into torch/headeronly (#194781)
- PyTorch 近 90 天出现 857 次
- PyTorch 近 90 天第 846 次发版
- 上一次:同一天稍早 · viable/strict/1789203000: [inductor] Make manual wait-user repair linear (#195616)
发生了什么
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…
摘要按规则整理自下方来源原文