Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
 
#pragma once
 
#if !defined(ORT_MINIMAL_BUILD)
#include <string>
#include <vector>
#include "core/common/common.h"
 
/// <summary>
/// Contains information about a node assigned to an EP. This is the definition of an opaque struct in the C API.
/// </summary>
struct OrtEpAssignedNode {
  std::string name;
  std::string domain;
  std::string op_type;
};
 
/// <summary>
/// Contains information about a subgraph assigned to an EP by the session graph partitioner.
/// This is the definition of an opaque struct in the C API.
/// </summary>
struct OrtEpAssignedSubgraph {
  OrtEpAssignedSubgraph() = default;
  OrtEpAssignedSubgraph(OrtEpAssignedSubgraph&&) = default;
  OrtEpAssignedSubgraph& operator=(OrtEpAssignedSubgraph&&) = default;
  ORT_DISALLOW_COPY_AND_ASSIGNMENT(OrtEpAssignedSubgraph);
 
  std::string ep_name;
  std::vector<std::unique_ptr<OrtEpAssignedNode>> nodes_storage;
  std::vector<const OrtEpAssignedNode*> nodes;
};
#endif  // !defined(ORT_MINIMAL_BUILD)