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

viable/strict/1788133803: Improve FX CodeGen process_inputs typing (#188287)

图:PyTorch Releases

发生了什么

Summary Refs #146249 . This narrows the default torch.fx.graph.CodeGen.process_inputs return annotation from Any to tuple[Any, ...] . The implementation already returns args unchanged, and Python collects *args as a tuple, so the annotation now matches the runtime behavior without changing execution: tuple[Any, ...]: return args"> def process_inputs ( self , * args : Any ) -> tuple [ Any , ...]: return args The spec…

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

为什么在扩散

来源