← Back to events
ActiveAIRelease

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

Photo: PyTorch Releases

What happened

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…

Summary assembled by rule from the sources below

Why it's spreading

Sources