General INFO logging tracking occurance of GraphTransformer modification (#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.
This commit is contained in:
Bowen Bao 2023-10-06 17:03:26 -07:00 committed by GitHub
parent 385fab5bae
commit 891b50cc68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)