Stricter backward compatibility check (#45773)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45773
Changes the function schema's backward compatibility check to be stricter to comply with C++ API backwards compatibility capabilities.
ghstack-source-id: 113537304
Test Plan:
Updated and added tests to test_function_schema.py
Browsed through several commits to native_functions.yaml and derivatives.yaml and I don't see instances where new arguments where not already being appended.
Reviewed By: dzhulgakov
Differential Revision: D24089751
fbshipit-source-id: a21f407cdc750906d3326e3ea27928b8aa732804