Rate this Page

torch.fx.experimental.migrate_gradual_types.constraint_generator.relu_inference_rule#

torch.fx.experimental.migrate_gradual_types.constraint_generator.relu_inference_rule(n, module_instance, symbols, constraints, counter)[source]#

Input and output shapes should be equal.

Return type:

tuple[list[Constraint], int]