← 返回事件
持续讨论AI发版

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

图:PyTorch Releases

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源