Исходный код СУБД 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.
 
#include "test/test_environment.h"
#include "onnxruntime_cxx_api.h"
#include <iostream>
#include <memory>
 
#include "gtest/gtest.h"
#include "google/protobuf/stubs/common.h"
 
#include "core/common/logging/logging.h"
#include "core/common/logging/sinks/clog_sink.h"
#include "core/session/ort_env.h"
#include "core/session/environment.h"
 
using namespace ::onnxruntime::logging;
extern std::unique_ptr<Ort::Env> ort_env;
 
namespace onnxruntime {
namespace test {
 
static std::unique_ptr<::onnxruntime::logging::LoggingManager> s_default_logging_manager;
 
const ::onnxruntime::Environment& GetEnvironment() {
  return ((OrtEnv*)*ort_env.get())->GetEnvironment();
}
 
::onnxruntime::logging::LoggingManager& DefaultLoggingManager() {
  return *((OrtEnv*)*ort_env.get())->GetEnvironment().GetLoggingManager();
}
 
}  // namespace test
}  // namespace onnxruntime