Allow registering same operator schema multiple times (#18038)
authorSebastian Messmer <messmer@fb.com>
Thu, 21 Mar 2019 21:51:38 +0000 (14:51 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 21 Mar 2019 21:57:28 +0000 (14:57 -0700)
commit1877087df25999a5c65c985c718836a0d01b29ae
tree01239ff18af12cfb0856789b2a3642562ecd6296
parent291746f11047361100102577ce7d1cfa1833be50
Allow registering same operator schema multiple times (#18038)

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

Now that we have named overloads, we can allow registering the same function schema multiple times and just check it's identical.

This is going to be used in custom op registration since they register the schema every time a kernel is registered.

Reviewed By: dzhulgakov

Differential Revision: D14467494

fbshipit-source-id: 2c26cf72a64b65f120afe05e989302ec42597515
aten/src/ATen/core/alias_info.h
aten/src/ATen/core/dispatch/Dispatcher.cpp
aten/src/ATen/core/dispatch/Dispatcher.h
aten/src/ATen/core/function_schema.h
aten/src/ATen/core/ivalue.h
caffe2/operators/experimental/c10/schemas/filler.cc