Skip to content

Commit

Permalink
Remove OpSchema dummy definition. Only needed for Function now, and w…
Browse files Browse the repository at this point in the history
…e can just exclude the method in Function (#6321)
  • Loading branch information
skottmckay authored Jan 13, 2021
1 parent d367941 commit cfd6f10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions include/onnxruntime/core/graph/function.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 0 additions & 5 deletions include/onnxruntime/core/graph/onnx_protobuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cfd6f10

Please sign in to comment.