pytorch
52005b55 - invokeOperatorFromPython: support overloaded operator calling (#34671)

Commit
4 years ago
invokeOperatorFromPython: support overloaded operator calling (#34671) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/34671 Like the python arg parser, this tries to convert to the schema in order. It introduces schema_match_exception which gets thrown when the schema doesn't match, allowing the overload handler to try the next option. Behavior will not 100% match the schema argument parser but should work for simple cases using custom binding. Test Plan: Imported from OSS Differential Revision: D20432206 Pulled By: zdevito fbshipit-source-id: 280839a2205ea3497db3a9b5741fccc1e2bff9a8
Author
Parents
Loading