Fix specify_constraints signature for exporting module (#101831)
Currently, when exporting a module, specify_constraint's signature is wrong. We make it consistent with the calling convention of the module being exported.
@build[pytorch_dynamo_inductor]
Pull Request resolved: https://github.com/pytorch/pytorch/pull/101831
Approved by: https://github.com/avikchaudhuri