onnxruntime/onnxruntime/core/graph/function_template.h
Tang, Cheng 4b875e3543
Re-implment the function support in onnxruntime (#11167)
* initial fix

* refactor the function handle

* update the implementation

* fix linux build break

* fix training build

* fix minmal build

* fix gradient checker

* deprecate the local function members in graph. host it in model

* fix changming's comments

* fix comments about inlined containers

* fix a missed inlined container

* fix training build

* avoid const for std string_view

Co-authored-by: Cheng Tang <chenta@microsoft.com>
2022-04-29 10:15:58 -07:00

17 lines
485 B
C++

#pragma once
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "onnx/onnx_pb.h"
namespace onnxruntime {
struct FunctionTemplate {
// The generated schema for the function proto
// ORT rely on it to run type/shape inference
std::unique_ptr<ONNX_NAMESPACE::OpSchema> op_schema_;
// reference to the function proto in local function
const ONNX_NAMESPACE::FunctionProto* onnx_func_proto_;
};
} // namespace onnxruntime