viable/strict/1788133803: Improve FX CodeGen process_inputs typing (#188287)
- PyTorch 近 90 天出现 284 次
- PyTorch 近 90 天第 281 次发版
- 上一次:同一天稍早 · viable/strict/1788132170
发生了什么
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…
摘要按规则整理自下方来源原文