mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-20 19:12:24 +00:00
Fix unused variable warning from reduced ops build (#12889)
This commit is contained in:
parent
28f2e57de5
commit
60e4d012e0
1 changed files with 2 additions and 2 deletions
|
|
@ -174,7 +174,6 @@ static constexpr PATH_TYPE VARIED_INPUT_CUSTOM_OP_MODEL_URI_2 = TSTR("testdata/f
|
|||
static constexpr PATH_TYPE OPTIONAL_INPUT_OUTPUT_CUSTOM_OP_MODEL_URI = TSTR("testdata/foo_bar_1.onnx");
|
||||
static constexpr PATH_TYPE OPTIONAL_INPUT_OUTPUT_CUSTOM_OP_MODEL_URI_2 = TSTR("testdata/foo_bar_2.onnx");
|
||||
static constexpr PATH_TYPE CUSTOM_OP_MODEL_WITH_ATTRIBUTES_URI = TSTR("testdata/foo_bar_3.onnx");
|
||||
static constexpr PATH_TYPE OPTIONAL_TYPE_GH_11717_MODEL = TSTR("testdata/gh_issue_11717.onnx");
|
||||
#if !defined(DISABLE_SPARSE_TENSORS)
|
||||
static constexpr PATH_TYPE SPARSE_OUTPUT_MODEL_URI = TSTR("testdata/sparse_initializer_as_output.onnx");
|
||||
#ifndef DISABLE_CONTRIB_OPS
|
||||
|
|
@ -2174,7 +2173,8 @@ TEST(CApiTest, TestCudaMemcpyToHostWithSequenceTensors) {
|
|||
// Reduced Ops build doesn't support OptionalHasElement (16) yet
|
||||
#if !defined(REDUCED_OPS_BUILD) && !defined(DISABLE_OPTIONAL_TYPE)
|
||||
TEST(CApiTest, GH_11717) {
|
||||
const auto* model_path = OPTIONAL_TYPE_GH_11717_MODEL;
|
||||
const auto* model_path = TSTR("testdata/gh_issue_11717.onnx");
|
||||
|
||||
Ort::SessionOptions session_options{};
|
||||
// Just check if the model loads fine without a segmentation fault
|
||||
// in the default CPU EP
|
||||
|
|
|
|||
Loading…
Reference in a new issue