Register operators by passing arguments to RegisterOperators constructor (#18577)
authorSebastian Messmer <messmer@fb.com>
Tue, 2 Apr 2019 19:23:15 +0000 (12:23 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 2 Apr 2019 19:33:33 +0000 (12:33 -0700)
commitf095c34b733864b7bca776cd86bb6bdb827b8ed5
tree4727454fca95a43f27da553e0a53f1b37ffaa15b
parent58f5954252ba8970aae965d4c5b010f28ad15c06
Register operators by passing arguments to RegisterOperators constructor (#18577)

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

This is also part of the legacy API and we need to support it if we want to replace it.

Reviewed By: dzhulgakov

Differential Revision: D14671432

fbshipit-source-id: 007abf4ab816647a509fc08e35d79b6c1aa55b03
aten/src/ATen/core/op_registration/kernel_function_legacy_test.cpp
aten/src/ATen/core/op_registration/kernel_lambda_legacy_test.cpp
aten/src/ATen/core/op_registration/op_registration.h