HDK
|
#include <graph_transformer.h>
Public Member Functions | |
GraphTransformer (const std::string &name, const InlinedHashSet< std::string_view > &compatible_execution_providers={}) noexcept | |
virtual | ~GraphTransformer ()=default |
const std::string & | Name () const noexcept |
const InlinedHashSet < std::string_view > & | GetCompatibleExecutionProviders () const noexcept |
common::Status | Apply (Graph &graph, bool &modified, const logging::Logger &logger) const |
virtual bool | ShouldOnlyApplyOnce () const |
Protected Member Functions | |
common::Status | Recurse (Node &node, bool &modified, int graph_level, const logging::Logger &logger) const |
The interface for in-place transformation of a Graph.
Definition at line 19 of file graph_transformer.h.
|
inlinenoexcept |
Definition at line 21 of file graph_transformer.h.
|
virtualdefault |
common::Status onnxruntime::GraphTransformer::Apply | ( | Graph & | graph, |
bool & | modified, | ||
const logging::Logger & | logger | ||
) | const |
|
inlinenoexcept |
Definition at line 33 of file graph_transformer.h.
|
inlinenoexcept |
Gets the name of this graph transformer.
Definition at line 29 of file graph_transformer.h.
|
inlineprotected |
Helper method to call ApplyImpl on any subgraphs in the Node.
Definition at line 47 of file graph_transformer.h.
|
inlinevirtual |
Definition at line 43 of file graph_transformer.h.