String-based schemas in op registration API (#19283)
authorSebastian Messmer <messmer@fb.com>
Thu, 18 Apr 2019 07:57:44 +0000 (00:57 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 18 Apr 2019 08:03:40 +0000 (01:03 -0700)
commit8036af39d2f0718e019d68616f279015d72688a8
tree1d000622c6d1bfa83fb909bdcd706181a4fe94b5
parent41dc54e291934d1fccd8dbd9fd7ad5293c9397ff
String-based schemas in op registration API (#19283)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19283

Now that the function schema parser is available in ATen/core, we can use it from the operator registration API to register ops based on string schemas.

This does not allow registering operators based on only the name yet - the full schema string needs to be defined.
A diff stacked on top will add name based registration.

Reviewed By: dzhulgakov

Differential Revision: D14931919

fbshipit-source-id: 71e490dc65be67d513adc63170dc3f1ce78396cc
aten/src/ATen/core/op_registration/kernel_function_legacy_test.cpp
aten/src/ATen/core/op_registration/kernel_function_test.cpp
aten/src/ATen/core/op_registration/kernel_functor_test.cpp
aten/src/ATen/core/op_registration/kernel_lambda_legacy_test.cpp
aten/src/ATen/core/op_registration/kernel_lambda_test.cpp
aten/src/ATen/core/op_registration/kernel_stackbased_test.cpp
aten/src/ATen/core/op_registration/op_registration.cpp
aten/src/ATen/core/op_registration/op_registration.h
aten/src/ATen/core/op_registration/op_registration_test.cpp