Remove core/common/gsl.h (#20894)
### Description It might be easier if we just directly include the original gsl headers. "core/common/gsl.h" is an indirection that doesn't provide extra help.
This commit is contained in:
Родитель
4c3c809bdb
Коммит
2c53b4a534
|
@ -1,6 +0,0 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "gsl/gsl"
|
|
@ -4,7 +4,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstdarg>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/code_location.h"
|
||||
#include "core/common/logging/severity.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <type_traits>
|
||||
#include <map>
|
||||
#include <unordered_map>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/exceptions.h"
|
||||
#include "core/framework/endian.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <cassert>
|
||||
#include <type_traits>
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include "core/graph/constants.h"
|
||||
#include "core/graph/graph_viewer.h"
|
||||
#include "core/graph/onnx_protobuf.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
namespace onnxruntime {
|
||||
class OpKernelContext;
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include "core/framework/ort_value.h"
|
||||
#include "core/framework/op_node_proto_helper.h"
|
||||
#include "core/graph/graph_viewer.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "core/common/status.h"
|
||||
#include "core/framework/tensor_shape.h"
|
||||
#include "core/graph/graph_viewer.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#endif
|
||||
|
||||
class IMLOpKernel;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/common.h"
|
||||
#include "core/framework/allocator.h"
|
||||
#include "core/framework/tensor_shape.h"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/inlined_containers_fwd.h"
|
||||
#include "core/common/span_utils.h"
|
||||
#include "onnxruntime_config.h"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include "core/common/flatbuffers.h"
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/path_string.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace contrib {
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "core/common/logging/logging.h"
|
||||
#include "core/framework/allocator.h"
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace contrib {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "core/common/common.h"
|
||||
#include "core/framework/op_kernel.h"
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace contrib {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include "core/mlas/inc/mlas.h"
|
||||
#include "core/platform/threadpool.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace contrib {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include "core/framework/TensorSeq.h"
|
||||
#include "core/framework/allocator.h"
|
||||
#include "core/framework/ort_value.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "contrib_ops/cpu/transformers/beam_search.h"
|
||||
#include "contrib_ops/cpu/transformers/logits_processor.h"
|
||||
#include "contrib_ops/cpu/transformers/sequences.h"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include "core/providers/cpu/math/softmax_shared.h"
|
||||
#include "core/providers/cpu/generator/random.h"
|
||||
#include "core/common/safeint.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "contrib_ops/cpu/transformers/sequences.h"
|
||||
#include "contrib_ops/cpu/transformers/beam_search_scorer.h"
|
||||
#include "contrib_ops/cpu/transformers/generation_device_helper.h"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#endif
|
||||
|
||||
#include <vector>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "contrib_ops/cpu/transformers/logits_processor.h"
|
||||
#include "contrib_ops/cpu/transformers/generation_shared.h"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <utility>
|
||||
#include <random>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/framework/allocator.h"
|
||||
#include "core/framework/ort_value.h"
|
||||
#include "contrib_ops/cpu/utils/debug_macros.h"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include "core/framework/session_options.h"
|
||||
#include "core/framework/TensorSeq.h"
|
||||
#include "core/framework/ort_value.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "contrib_ops/cpu/transformers/greedy_search.h"
|
||||
#include "contrib_ops/cpu/transformers/logits_processor.h"
|
||||
#include "contrib_ops/cpu/transformers/sequences.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "contrib_ops/cpu/transformers/generation_shared.h"
|
||||
|
||||
namespace onnxruntime {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "core/framework/tensorprotoutils.h"
|
||||
#include "core/framework/utils.h"
|
||||
#include "core/providers/cpu/tensor/utils.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "contrib_ops/cpu/transformers/subgraph_base.h"
|
||||
#include "contrib_ops/cpu/utils/dump_tensor.h"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/framework/allocator.h"
|
||||
#include "core/framework/feeds_fetches_manager.h"
|
||||
#include "contrib_ops/cpu/transformers/generation_device_helper.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "core/framework/tensorprotoutils.h"
|
||||
#include "core/framework/utils.h"
|
||||
#include "core/providers/cpu/tensor/utils.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "contrib_ops/cpu/transformers/subgraph_gpt.h"
|
||||
#include "contrib_ops/cpu/utils/dump_tensor.h"
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "core/framework/tensorprotoutils.h"
|
||||
#include "core/framework/utils.h"
|
||||
#include "core/providers/cpu/tensor/utils.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "contrib_ops/cpu/transformers/subgraph_t5_decoder.h"
|
||||
#include "contrib_ops/cpu/utils/dump_tensor.h"
|
||||
#include "contrib_ops/cpu/transformers/generation_device_helper.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "core/framework/tensorprotoutils.h"
|
||||
#include "core/framework/utils.h"
|
||||
#include "core/providers/cpu/tensor/utils.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "contrib_ops/cpu/transformers/subgraph_t5_encoder.h"
|
||||
|
||||
namespace onnxruntime {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "core/framework/tensorprotoutils.h"
|
||||
#include "core/framework/utils.h"
|
||||
#include "core/providers/cpu/tensor/utils.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "contrib_ops/cpu/transformers/subgraph_t5_decoder.h"
|
||||
#include "contrib_ops/cpu/transformers/subgraph_whisper_decoder.h"
|
||||
#include "contrib_ops/cpu/utils/dump_tensor.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "core/framework/tensorprotoutils.h"
|
||||
#include "core/framework/utils.h"
|
||||
#include "core/providers/cpu/tensor/utils.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "contrib_ops/cpu/transformers/subgraph_t5_encoder.h"
|
||||
#include "contrib_ops/cpu/transformers/subgraph_whisper_encoder.h"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <cuda_fp16.h>
|
||||
#include <cublas_v2.h>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/framework/allocator.h"
|
||||
#include "contrib_ops/cpu/bert/attention_common.h"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "sharding_spec.h"
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/framework/tensor_shape.h"
|
||||
|
||||
#include <cctype>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "core/providers/cpu/tensor/utils.h"
|
||||
#include "core/providers/cuda/cuda_common.h"
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "contrib_ops/cpu/transformers/sequences.h"
|
||||
#include "contrib_ops/cpu/transformers/generation_shared.h"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include <tvm/tvm.h>
|
||||
#include "core/codegen/mti/common.h"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "core/codegen/mti/tensor/concat_ops.h"
|
||||
|
||||
#include "core/codegen/mti/mti_tvm_utils.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include <topi/transform.h>
|
||||
|
||||
namespace onnxruntime {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "core/codegen/mti/tensor/gather.h"
|
||||
|
||||
#include "core/codegen/mti/mti_tvm_utils.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include <topi/transform.h>
|
||||
|
||||
namespace onnxruntime {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include "core/codegen/mti/mti_tvm_utils.h"
|
||||
#include <climits>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include <topi/transform.h>
|
||||
#include <tvm/ir_pass.h>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "core/codegen/mti/tensor/split.h"
|
||||
|
||||
#include "core/codegen/mti/mti_tvm_utils.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include <topi/transform.h>
|
||||
|
||||
namespace onnxruntime {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "core/codegen/mti/tensor/tile.h"
|
||||
#include "core/codegen/mti/mti_tvm_utils.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace tvm_codegen {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "core/codegen/passes/utils/codegen_context.h"
|
||||
#include "core/framework/tensorprotoutils.h"
|
||||
#include "core/providers/common.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include <topi/detail/extern.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "core/common/logging/capture.h"
|
||||
#include "core/common/logging/logging.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace logging {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "core/flatbuffers/flatbuffers_utils.h"
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/flatbuffers/schema/ort.fbs.h"
|
||||
#include "core/graph/constants.h"
|
||||
#include "core/graph/onnx_protobuf.h"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <type_traits>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/framework/tensor.h"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <type_traits>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/common/status.h"
|
||||
#include "core/common/common.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/inlined_containers_fwd.h"
|
||||
#include "core/framework/execution_provider.h" // for IExecutionProvider::IKernelLookup
|
||||
#include "core/graph/graph_viewer.h"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/framework/execution_provider.h" // for IExecutionProvider::IKernelLookup
|
||||
#include "core/framework/kernel_registry.h"
|
||||
#include "core/framework/kernel_type_str_resolver.h"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <variant>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/inlined_containers.h"
|
||||
#include "core/common/status.h"
|
||||
#include "core/framework/kernel_type_str_resolver.h"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "core/graph/onnx_protobuf.h"
|
||||
#endif // !defined(ORT_MINIMAL_BUILD)
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/inlined_containers.h"
|
||||
#include "core/common/status.h"
|
||||
#include "core/graph/op_identifier.h"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#if !defined(ORT_MINIMAL_BUILD) || defined(ORT_EXTENDED_MINIMAL_BUILD)
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/status.h"
|
||||
#include "core/framework/kernel_type_str_resolver.h"
|
||||
#include "core/graph/op_identifier.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "core/framework/tensorprotoutils.h"
|
||||
#include "core/graph/onnx_protobuf.h"
|
||||
#include "core/graph/op.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
using namespace ONNX_NAMESPACE;
|
||||
using namespace ::onnxruntime::common;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <iostream>
|
||||
#include <codecvt>
|
||||
#include <filesystem>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/inlined_containers.h"
|
||||
#include "core/framework/config_options.h"
|
||||
#include "core/framework/ort_value.h"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include "core/common/flatbuffers.h"
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/inlined_containers.h"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <emscripten.h>
|
||||
#endif
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/logging/logging.h"
|
||||
#include "core/common/narrow.h"
|
||||
#include "core/common/span_utils.h"
|
||||
|
|
|
@ -37,7 +37,7 @@ We fall back to the default implementation in all other cases, and if the input
|
|||
#include "core/framework/tensor.h"
|
||||
#include "core/platform/threadpool.h"
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
bool IsTransposeMovingSingleAxis(gsl::span<const size_t> permutations, size_t& from, size_t& to);
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <queue>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/inlined_containers.h"
|
||||
#include "core/common/logging/logging.h"
|
||||
#include "core/common/narrow.h"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#endif
|
||||
#include "core/util/protobuf_parsing_utils.h"
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/platform/env.h"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/graph/onnx_protobuf.h"
|
||||
#include "core/graph/basic_types.h"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <algorithm>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/flatbuffers/flatbuffers_utils.h"
|
||||
#include "core/flatbuffers/schema/ort.fbs.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/optimizer/graph_transformer.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/framework/tensorprotoutils.h"
|
||||
#include "core/framework/tensor_external_data_info.h"
|
||||
#include "core/platform/env.h"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <string>
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/inlined_containers.h"
|
||||
#include "core/framework/node_unit.h"
|
||||
#include "core/graph/basic_types.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/graph/graph_utils.h" // TODO: Minimize usage of this given we want to use Actions in a minimal build
|
||||
#include "core/graph/runtime_optimization_record.h"
|
||||
#include "core/optimizer/selectors_actions/helpers.h"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "core/common/basic_types.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/inlined_containers.h"
|
||||
#include "core/graph/graph.h"
|
||||
#include "core/graph/runtime_optimization_record.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/make_string.h"
|
||||
#include "core/graph/constants.h"
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ limitations under the License.
|
|||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/path_string.h"
|
||||
|
|
|
@ -44,7 +44,7 @@ limitations under the License.
|
|||
#endif
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/logging/logging.h"
|
||||
#include "core/common/narrow.h"
|
||||
#include "core/platform/scoped_resource.h"
|
||||
|
|
|
@ -26,7 +26,7 @@ limitations under the License.
|
|||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/logging/logging.h"
|
||||
#include "core/common/narrow.h"
|
||||
#include "core/common/span_utils.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#endif
|
||||
|
||||
#include "core/common/logging/logging.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <optional>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/status.h"
|
||||
#include "core/graph/basic_types.h"
|
||||
#include "core/providers/common.h"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <unordered_set>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/logging/logging.h"
|
||||
#include "core/common/status.h"
|
||||
#include "core/platform/ort_mutex.h"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/inlined_containers.h"
|
||||
#include "core/common/logging/logging.h"
|
||||
#include "core/common/narrow.h"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/logging/logging.h"
|
||||
#include "core/graph/node_arg.h"
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include "core/framework/TensorSeq.h"
|
||||
#include "core/providers/utils.h"
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#pragma once
|
||||
#include <functional>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#ifndef SHARED_PROVIDER
|
||||
#include "core/common/common.h"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "core/providers/cpu/tensor/utils.h"
|
||||
#include "core/providers/cpu/tensor/transpose.h"
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <random>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/framework/op_kernel.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/framework/op_kernel.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <type_traits>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/framework/data_types.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/framework/op_kernel.h"
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/util/math.h"
|
||||
#include "core/util/math_cpuonly.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "core/providers/cpu/ml/cast_map.h"
|
||||
#include <algorithm>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
using namespace ::onnxruntime::common;
|
||||
|
||||
namespace {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "core/providers/cpu/ml/category_mapper.h"
|
||||
#include <algorithm>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
using namespace ::onnxruntime::common;
|
||||
|
||||
namespace onnxruntime {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "core/providers/cpu/ml/feature_vectorizer.h"
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace ml {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "core/providers/cpu/ml/label_encoder.h"
|
||||
#include <algorithm>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
using namespace ::onnxruntime::common;
|
||||
|
||||
namespace onnxruntime {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include "core/common/common.h"
|
||||
#include "core/framework/op_kernel.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/providers/cpu/tensor/utils.h"
|
||||
#include "core/providers/common.h"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/exceptions.h"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "core/common/safeint.h"
|
||||
#include "core/platform/threadpool.h"
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace rnn {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <string>
|
||||
#include <type_traits>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/narrow.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <algorithm>
|
||||
#include <optional>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/providers/common.h"
|
||||
#include "core/providers/cpu/tensor/transpose.h"
|
||||
#include "core/util/math_cpuonly.h"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#pragma warning(disable : 4996)
|
||||
#endif
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "core/framework/op_kernel.h"
|
||||
#endif
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include <limits>
|
||||
|
||||
namespace onnxruntime {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/framework/tensor_shape.h"
|
||||
|
||||
namespace onnxruntime {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "core/providers/cpu/tensor/split.h"
|
||||
|
||||
#include "core/common/narrow.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/safeint.h"
|
||||
#include "core/framework/copy.h"
|
||||
#include "core/framework/element_type_lists.h"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include "core/framework/op_kernel.h"
|
||||
#endif
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include <sstream>
|
||||
|
||||
namespace onnxruntime {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "core/providers/cpu/tensor/unique.h"
|
||||
#include <map>
|
||||
#include <core/common/safeint.h>
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/framework/op_kernel_type_control_utils.h"
|
||||
#include "core/providers/common.h"
|
||||
#include "core/providers/op_kernel_type_control.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Licensed under the MIT License.
|
||||
|
||||
#pragma once
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/common/narrow.h"
|
||||
|
||||
#ifndef SHARED_PROVIDER
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include "core/providers/cuda/cuda_pch.h"
|
||||
#include "core/providers/cuda/shared_inc/cuda_call.h"
|
||||
#include "core/providers/cuda/shared_inc/fast_divmod.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace cuda {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <memory>
|
||||
#include <chrono>
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/providers/cuda/cuda_execution_provider.h"
|
||||
#include "core/providers/cuda/cuda_execution_provider_info.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include "core/providers/cuda/cudnn_common.h"
|
||||
#include "core/common/inlined_containers.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "shared_inc/cuda_call.h"
|
||||
#include "core/providers/cpu/tensor/utils.h"
|
||||
#ifndef USE_CUDA_MINIMAL
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
#include "core/providers/cuda/cuda_kernel.h"
|
||||
|
||||
namespace onnxruntime {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include "core/common/common.h"
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
namespace onnxruntime {
|
||||
namespace cuda {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/common/gsl.h"
|
||||
#include <gsl/gsl>
|
||||
|
||||
#include "core/providers/cuda/cuda_kernel.h"
|
||||
#include "core/providers/cuda/cudnn_common.h"
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче