Rate this Page

torch.fx.experimental.migrate_gradual_types.constraint_transformation.transform_constraint#

torch.fx.experimental.migrate_gradual_types.constraint_transformation.transform_constraint(constraint, counter)[source]#

Transforms a constraint into a simpler constraint. Ex: precision and consistency are transformed to equality :param constraint: constraint to be transformed :param counter: for variable tracking

Returns: Constraint