Remove OpSchema dummy definition. Only needed for Function now, and we can just exclude the method in Function (#6321)

This commit is contained in:
Scott McKay 2021-01-14 09:39:31 +10:00 committed by GitHub
parent d367941cc4
commit cfd6f10098
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View file

@ -21,8 +21,10 @@ class Function {
public:
virtual ~Function() = default;
#if !defined(ORT_MINIMAL_BUILD)
/** Gets the OpSchema for the Function. */
virtual const ONNX_NAMESPACE::OpSchema& OpSchema() const = 0;
#endif
/** Gets the Graph instance for the Function body subgraph. */
virtual const onnxruntime::Graph& Body() const = 0;

View file

@ -38,11 +38,6 @@
#include "onnx/defs/schema.h"
#else
#include "onnx/defs/data_type_utils.h"
// stub definition of OpSchema to minimize other code changes
namespace ONNX_NAMESPACE {
class OpSchema {};
} // namespace ONNX_NAMESPACE
#endif
#include "onnx/onnx_pb.h"