diff --git a/include/onnxruntime/core/graph/graph.h b/include/onnxruntime/core/graph/graph.h index 69632df596..10494836c4 100644 --- a/include/onnxruntime/core/graph/graph.h +++ b/include/onnxruntime/core/graph/graph.h @@ -113,7 +113,7 @@ class Node { initialization for such nodes also happens during node creation. Therefore, initialization of function body will happen via this method only in case 2 mentioned above. */ - const Function* GetFunctionBody(bool try_int_func_body = true) noexcept; + const Function* GetFunctionBody(bool try_init_func_body = true); /** Gets the function body if applicable otherwise nullptr. */ const Function* GetFunctionBody() const noexcept; diff --git a/onnxruntime/core/graph/graph.cc b/onnxruntime/core/graph/graph.cc index f6cca85ff5..4993bf7f36 100644 --- a/onnxruntime/core/graph/graph.cc +++ b/onnxruntime/core/graph/graph.cc @@ -433,7 +433,7 @@ void Node::SetNodeType(Node::Type node_type) noexcept { node_type_ = node_type; } -const Function* Node::GetFunctionBody(bool try_init_func_body) noexcept { +const Function* Node::GetFunctionBody(bool try_init_func_body) { if (nullptr != func_body_) { return func_body_; }