Skip to content

Commit

Permalink
General INFO logging tracking occurance of GraphTransformer modificat…
Browse files Browse the repository at this point in the history
…ion (microsoft#17819)

### Description
Adds logging to `GraphTransformer::Apply` whether modification has taken
place or not.



### Motivation and Context
A general high level info logging to track which optimization occurred
for a given model. To help improve dynamo exported model performance by
monitoring the difference of triggered transformations between that of
torchscript exported model.
  • Loading branch information
BowenBao authored and kleiti committed Mar 22, 2024
1 parent 7c0facd commit 26533f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions onnxruntime/core/optimizer/graph_transformer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Status GraphTransformer::Apply(Graph& graph, bool& modified, const logging::Logg
// ORT_RETURN_IF_ERROR(graph.Resolve());

auto status = ApplyImpl(graph, modified, 0, logger);
LOGS(logger, INFO) << "GraphTransformer " << Name() << " modified: " << modified << " with status: " << status;
ORT_RETURN_IF_ERROR(status);

#if !defined(ORT_MINIMAL_BUILD)
Expand Down

0 comments on commit 26533f7

Please sign in to comment.