mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-22 19:23:30 +00:00
* Mention OrtCreateSessionFromArray in C API doc * review changes * use enum for graph optimization level * Use explicit values for enums * updates... * Add friendly enum for graph optimization levels in C, C# and Python APIs. * Fix linux build * Fix build breakage due to master merge * PR comments
14 lines
476 B
C++
14 lines
476 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#include "core/session/onnxruntime_cxx_api.h"
|
|
#include "core/optimizer/graph_transformer_level.h"
|
|
|
|
#include "test_fixture.h"
|
|
using namespace onnxruntime;
|
|
|
|
TEST_F(CApiTest, session_options_graph_optimization_level) {
|
|
// Test set optimization level succeeds when valid level is provided.
|
|
Ort::SessionOptions options;
|
|
options.SetGraphOptimizationLevel(ORT_ENABLE_EXTENDED);
|
|
}
|