HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
function.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License.
3 
4 #pragma once
5 
6 #include "core/common/common.h"
8 
9 namespace onnxruntime {
10 class Graph;
11 class Node;
12 } // namespace onnxruntime
13 
14 namespace onnxruntime {
15 
16 /**
17 @class Function
18 Class representing a Function.
19 */
20 class Function {
21  public:
22  virtual ~Function() = default;
23 
24  /** Gets the Graph instance for the Function body subgraph. */
25  virtual const onnxruntime::Graph& Body() const = 0;
26 
27  /** Gets the Mutable Graph instance for the Function body subgraph. */
28  virtual onnxruntime::Graph& MutableBody() = 0;
29 };
30 
31 } // namespace onnxruntime
Definition: Node.h:52
virtual onnxruntime::Graph & MutableBody()=0
virtual const onnxruntime::Graph & Body() const =0
virtual ~Function()=default