From: Pavel Sobolev Subject: [PATCH] Relax the dependency on `flatbuffers`. Signed-off-by: Pavel Sobolev --- a/onnxruntime/core/flatbuffers/schema/ort.fbs.h +++ b/onnxruntime/core/flatbuffers/schema/ort.fbs.h @@ -6,13 +6,6 @@ #include "core/common/flatbuffers.h" -// Ensure the included flatbuffers.h is the same version as when this file was -// generated, otherwise it may not be compatible. -static_assert(FLATBUFFERS_VERSION_MAJOR == 23 && - FLATBUFFERS_VERSION_MINOR == 5 && - FLATBUFFERS_VERSION_REVISION == 26, - "Non-compatible flatbuffers version included"); - namespace onnxruntime { namespace fbs { --- a/onnxruntime/core/flatbuffers/schema/ort_training_checkpoint.fbs.h +++ b/onnxruntime/core/flatbuffers/schema/ort_training_checkpoint.fbs.h @@ -6,13 +6,6 @@ #include "core/common/flatbuffers.h" -// Ensure the included flatbuffers.h is the same version as when this file was -// generated, otherwise it may not be compatible. -static_assert(FLATBUFFERS_VERSION_MAJOR == 23 && - FLATBUFFERS_VERSION_MINOR == 5 && - FLATBUFFERS_VERSION_REVISION == 26, - "Non-compatible flatbuffers version included"); - #include "ort.fbs.h" namespace onnxruntime { --- a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/External/DirectMLHelpers/DmlGraphDesc_generated.h +++ b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/External/DirectMLHelpers/DmlGraphDesc_generated.h @@ -6,13 +6,6 @@ #include "core/common/flatbuffers.h" -// Ensure the included flatbuffers.h is the same version as when this file was -// generated, otherwise it may not be compatible. -static_assert(FLATBUFFERS_VERSION_MAJOR == 23 && - FLATBUFFERS_VERSION_MINOR == 5 && - FLATBUFFERS_VERSION_REVISION == 26, - "Non-compatible flatbuffers version included"); - #include "OperatorFieldTypes_generated.h" namespace dml { --- a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/External/DirectMLHelpers/OperatorFieldTypes_generated.h +++ b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/External/DirectMLHelpers/OperatorFieldTypes_generated.h @@ -6,13 +6,6 @@ #include "core/common/flatbuffers.h" -// Ensure the included flatbuffers.h is the same version as when this file was -// generated, otherwise it may not be compatible. -static_assert(FLATBUFFERS_VERSION_MAJOR == 23 && - FLATBUFFERS_VERSION_MINOR == 5 && - FLATBUFFERS_VERSION_REVISION == 26, - "Non-compatible flatbuffers version included"); - namespace dml { namespace ir { namespace operatorFieldTypes { --- a/onnxruntime/lora/adapter_format/adapter_schema.fbs.h +++ b/onnxruntime/lora/adapter_format/adapter_schema.fbs.h @@ -5,13 +5,6 @@ #include "flatbuffers/flatbuffers.h" -// Ensure the included flatbuffers.h is the same version as when this file was -// generated, otherwise it may not be compatible. -static_assert(FLATBUFFERS_VERSION_MAJOR == 23 && - FLATBUFFERS_VERSION_MINOR == 5 && - FLATBUFFERS_VERSION_REVISION == 26, - "Non-compatible flatbuffers version included"); - namespace onnxruntime { namespace adapters { --- a/onnxruntime/test/flatbuffers/flatbuffers_utils_test.fbs.h +++ b/onnxruntime/test/flatbuffers/flatbuffers_utils_test.fbs.h @@ -7,13 +7,6 @@ // manual edit to use wrapper in core/common #include "core/common/flatbuffers.h" -// Ensure the included flatbuffers.h is the same version as when this file was -// generated, otherwise it may not be compatible. -static_assert(FLATBUFFERS_VERSION_MAJOR == 23 && - FLATBUFFERS_VERSION_MINOR == 5 && - FLATBUFFERS_VERSION_REVISION == 26, - "Non-compatible flatbuffers version included"); - // manual edit to set include path for this #include "core/flatbuffers/schema/ort.fbs.h"