From baf75c44e721e48da3079df0bad0c5c774033a73 Mon Sep 17 00:00:00 2001 From: Pranav Sharma Date: Tue, 24 Sep 2019 22:19:49 -0700 Subject: [PATCH] Remove registration of Aten op. (#1908) * Mention OrtCreateSessionFromArray in C API doc * Remove Aten registration --- .../core/graph/contrib_ops/contrib_defs.cc | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/onnxruntime/core/graph/contrib_ops/contrib_defs.cc b/onnxruntime/core/graph/contrib_ops/contrib_defs.cc index 31af8a5f61..aa609de571 100644 --- a/onnxruntime/core/graph/contrib_ops/contrib_defs.cc +++ b/onnxruntime/core/graph/contrib_ops/contrib_defs.cc @@ -412,27 +412,6 @@ value at X[t][n] >= seqLengths[n]. {"tensor(float16)", "tensor(float)", "tensor(double)"}, "Constrain input and output types to float tensors."); - static const char* ATen_ver1_doc = R"DOC( -Experimental allowing ATen operations to be accessed directly from Caffe2 -to allow for quick prototyping when ONNX is missing standard versions of -and op)DOC"; - - ONNX_CONTRIB_OPERATOR_SCHEMA(ATen) - .SinceVersion(1) - .AllowUncheckedAttributes() - .SetDoc(ATen_ver1_doc) - .Input(0, "input", "Arbitrary input", "T", OpSchema::Variadic) - .Output(0, "output", "Arbitrary output", "T", OpSchema::Variadic) - .TypeConstraint( - "T", - {"tensor(bool)", - "tensor(int32)", - "tensor(int64)", - "tensor(float16)", - "tensor(float)", - "tensor(double)"}, - "Constrain output types to bool, int32, int64, float16, float, double tensors."); - ONNX_CONTRIB_OPERATOR_SCHEMA(GivenTensorFill) .SinceVersion(10) .Deprecate() @@ -515,23 +494,6 @@ and op)DOC"; {"tensor(float16)", "tensor(float)", "tensor(double)"}, "Constrain input and output types to float tensors."); - ONNX_CONTRIB_OPERATOR_SCHEMA(ATen) - .SinceVersion(10) - .Deprecate() - .AllowUncheckedAttributes() - .SetDoc(ATen_ver1_doc) - .Input(0, "input", "Arbitrary input", "T", OpSchema::Variadic) - .Output(0, "output", "Arbitrary output", "T", OpSchema::Variadic) - .TypeConstraint( - "T", - {"tensor(bool)", - "tensor(int32)", - "tensor(int64)", - "tensor(float16)", - "tensor(float)", - "tensor(double)"}, - "Constrain output types to bool, int32, int64, float16, float, double tensors."); - ONNX_OPERATOR_SCHEMA(MeanVarianceNormalization) .SinceVersion(1) .SetDoc(R"DOC(Perform mean variance normalization.)DOC")