Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions include/onnxruntime/core/graph/graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,8 @@ class Node {
@remarks The graph containing this node must be resolved, otherwise nullptr will be returned. */
const ONNX_NAMESPACE::OpSchema* Op() const noexcept { return op_; }

Status InstantiateFunctionBody();

Status GetInstantiateFunctionBody(std::unique_ptr<Function>& output) const;
/** Create a copy of the called op's FunctionProto if it has one. Returns true if successful. */
bool TryGetFunctionProto(ONNX_NAMESPACE::FunctionProto& func_proto) const;

bool CanBeInlined() const;

Expand Down Expand Up @@ -1289,9 +1288,9 @@ class Graph {
*/
Graph(Graph& parent_graph, const Node& parent_node, ONNX_NAMESPACE::GraphProto& subgraph_proto);

Graph(const Model& owning_model,
IOnnxRuntimeOpSchemaCollectionPtr schema_registry,
ONNX_NAMESPACE::GraphProto& subgraph_proto,
Graph(const Model& owning_model,
IOnnxRuntimeOpSchemaCollectionPtr schema_registry,
ONNX_NAMESPACE::GraphProto& subgraph_proto,
const std::unordered_map<std::string, int>& domain_version_map,
const logging::Logger& logger,
bool strict_shape_type_inference);
Expand Down Expand Up @@ -1571,7 +1570,7 @@ class Graph {
IOnnxRuntimeOpSchemaCollectionPtr schema_registry_;

//Currently to make the ORT in-memory graph work, we have to create a temporary op schema
//for the fused kernel. I really don't like it. but for short-term solution, let's host
//for the fused kernel. I really don't like it. but for short-term solution, let's host
//those schemas here.
InlinedVector<std::unique_ptr<ONNX_NAMESPACE::OpSchema>> fused_schemas_containers_;
#endif // !defined(ORT_MINIMAL_BUILD)
Expand Down
Loading