Rate this Page

torch.fx.experimental.migrate_gradual_types.constraint_transformation.calc_last_two_dims#

torch.fx.experimental.migrate_gradual_types.constraint_transformation.calc_last_two_dims(constraint, d)[source]#

Generates constraints for the last two dimensions of a convolution or a maxpool output :param constraint: CalcConv or CalcMaxPool :param d: The list of output dimensions

Returns: Constraints for calculating the last two dimensions of the output