mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
remove useless internal schema file (#226)
* placeholder for internal contrib ops * remove useless internal file * fix build break
This commit is contained in:
parent
1d95c93987
commit
0dca080238
4 changed files with 11 additions and 35 deletions
|
|
@ -479,6 +479,10 @@ if (onnxruntime_USE_TVM)
|
|||
include(onnxruntime_codegen.cmake)
|
||||
endif()
|
||||
|
||||
if (onnxruntime_ENABLE_MICROSOFT_INTERNAL)
|
||||
add_definitions(-DMICROSOFT_INTERNAL)
|
||||
endif()
|
||||
|
||||
#names in this var must match the directory names under onnxruntime/core/providers
|
||||
set(ONNXRUNTIME_PROVIDER_NAMES cpu)
|
||||
|
||||
|
|
|
|||
|
|
@ -5,10 +5,13 @@
|
|||
#include "core/graph/contrib_ops/attn_lstm_schema_defs.h"
|
||||
#include "core/graph/contrib_ops/contrib_defs.h"
|
||||
#include "core/graph/contrib_ops/range_schema_defs.h"
|
||||
#include "core/graph/contrib_ops/internal_schema_defs.h"
|
||||
#include "core/graph/op.h"
|
||||
#include "onnx/defs/shape_inference.h"
|
||||
|
||||
#ifdef MICROSOFT_INTERNAL
|
||||
#include "core/graph/contrib_ops/internal_schema_defs.h"
|
||||
#endif
|
||||
|
||||
namespace ONNX_NAMESPACE {
|
||||
void convPoolTypeAndShapeInference(ONNX_NAMESPACE::InferenceContext& ctx, bool use_dilation, bool require_kernel_shape);
|
||||
}
|
||||
|
|
@ -653,8 +656,11 @@ Example 4:
|
|||
indices = [[[0,1]],[[1,0]]]
|
||||
output = [[[2,3]],[[4,5]]]
|
||||
)DOC");
|
||||
|
||||
#ifdef MICROSOFT_INTERNAL
|
||||
// register internal ops
|
||||
RegisterInternalSchemas();
|
||||
#endif
|
||||
}
|
||||
} // namespace contrib
|
||||
} // namespace onnxruntime
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
#include "range_schema_defs.h"
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace contrib {
|
||||
|
||||
void RegisterInternalSchemas() {}
|
||||
|
||||
} // namespace contrib
|
||||
} // namespace onnxruntime
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#endif
|
||||
#include "onnx/defs/schema.h"
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace contrib {
|
||||
|
||||
void RegisterInternalSchemas();
|
||||
|
||||
} // namespace contrib
|
||||
} // namespace onnxruntime
|
||||
Loading…
Reference in a new issue