mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Remove OpSchema dummy definition. Only needed for Function now, and we can just exclude the method in Function (#6321)
This commit is contained in:
parent
d367941cc4
commit
cfd6f10098
2 changed files with 2 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue