// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include #include #include #include #include #include #include "core/common/basic_types.h" #include "core/common/status.h" namespace ONNX_NAMESPACE { class ValueInfoProto; class TensorProto; class SparseTensorProto; class TypeProto; class AttributeProto; class FunctionProto; class OperatorSetIdProto; // define types that would come from the ONNX library if we were building against it. #if defined(ORT_MINIMAL_BUILD) using OperatorSetVersion = int; #endif } // namespace ONNX_NAMESPACE namespace onnxruntime { using NodeIndex = size_t; using Version = int64_t; using NodeArgInfo = ONNX_NAMESPACE::ValueInfoProto; using InitializedTensorSet = std::unordered_map; using ArgNameToTypeMap = std::unordered_map; using ProviderType = const std::string&; // TODO - Evaluate switching the types below to support transparent comparators and enable // lookups based on gsl::cstring_span<> and std::string_view. This would reduces allocations // converting to std::string, but requires conversion to std::map> // instead of std::unordered_map]>. using NodeAttributes = std::unordered_map; class IOnnxRuntimeOpSchemaCollection; using IOnnxRuntimeOpSchemaCollectionPtr = std::shared_ptr; class OpKernel; class OpKernelInfo; class FuncManager; using KernelCreateFn = std::function& out)>; } // namespace onnxruntime