mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-01 23:30:35 +00:00
update getfunctionbody (#4396)
This commit is contained in:
parent
3bb6a865cc
commit
ef602835b0
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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_;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue