pytorch/caffe2/onnx/torch_ops/schema.cc
Junjie Bai 65bf181ddf Add "ai.onnx.pytorch" onnx domain (#12157)
Summary:
zrphercule
Pull Request resolved: https://github.com/pytorch/pytorch/pull/12157

Differential Revision: D10100799

Pulled By: bddppq

fbshipit-source-id: 76fdd126e0b52c54276752b3b0174735355a7d2f
2018-09-28 09:57:06 -07:00

18 lines
469 B
C++

#include "./schema.h"
#include "./operator_sets.h"
namespace {
using namespace ONNX_NAMESPACE;
class PyTorchSchemasRegisterer {
public:
PyTorchSchemasRegisterer() {
OpSchemaRegistry::DomainToVersionRange::Instance().AddDomainToVersion(
AI_ONNX_PYTORCH_DOMAIN,
AI_ONNX_PYTORCH_DOMAIN_MIN_OPSET,
AI_ONNX_PYTORCH_DOMAIN_MAX_OPSET);
RegisterPyTorchOperatorSetSchema();
}
};
static PyTorchSchemasRegisterer registerer{};
} // namespace