Rate this Page

torch.fx.experimental.migrate_gradual_types.constraint_transformation.generate_all_int_dyn_dim_possibilities#

torch.fx.experimental.migrate_gradual_types.constraint_transformation.generate_all_int_dyn_dim_possibilities(my_list)[source]#

Generate all possibilities of being equal or not equal to dyn for my_list :param my_list: List of tensor dimensions

Returns: A list of a list of constraints. Each list of constraints corresponds to one possibility about the values of the dimension variables

Return type:

list[tuple[BinConstraintD, …]]