From ef602835b018a3437a8d0f433e77d9264dd7c3d2 Mon Sep 17 00:00:00 2001 From: Ashwini Khade Date: Thu, 2 Jul 2020 09:00:37 -0700 Subject: [PATCH] update getfunctionbody (#4396) --- include/onnxruntime/core/graph/graph.h | 2 +- onnxruntime/core/graph/graph.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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_; }