Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
 
#pragma once
#include "core/common/logging/logging.h"
#include "core/graph/function.h"
#include "core/graph/graph.h"
 
namespace onnxruntime {
class Graph;
class Node;
}  // namespace onnxruntime
 
namespace onnxruntime {
 
// Function representation class.
class FunctionImpl final : public Function {
 public:
  // This constructor is used during subgraph fusion in
  // graph partitioning phase. This constructor takes the nodes
  // which need to be fused and creates a function body for the fused node.
  FunctionImpl(onnxruntime::Graph& graph,
               const IndexedSubGraph& nodes_to_fuse);
 
  // This constructor is used during function body initialization for
  // a Function Op. This takes in a FunctionProto and constructs function body
  // from it. The function body initialization happens during model load in graph resolve
  // phase.
  // model_local_functions contains domain:optype to model_local_functions map. This is
  // used to resolve and initialize nested functions.
  FunctionImpl(onnxruntime::Graph& graph,
               const ONNX_NAMESPACE::FunctionProto& onnx_func);
 
  ~FunctionImpl() override;
 
  const onnxruntime::Graph& Body() const override;
 
  onnxruntime::Graph& MutableBody() override;
 
 private:
  // onnxruntime::Model body_;
  ONNX_NAMESPACE::GraphProto function_storage_proto_;
  onnxruntime::Graph function_body_graph_;
};
 
namespace function_utils {
 
}
 
}  // namespace onnxruntime