torch.fx.experimental.migrate_gradual_types.constraint_generator.expand_inference_rule#
- torch.fx.experimental.migrate_gradual_types.constraint_generator.expand_inference_rule(n, symbols, constraints, counter)[source]#
We generate the exact constraints as we do for tensor additions but we constraint the rank of this expression to be equal to len(n.args[1:]) so that only those cases get considered for the output