Improve logged message for nodes that are forced to execute on CPU rather than some other EP (usually CUDA) (#7297)

This commit is contained in:
Hariharan Seshadri 2021-04-09 01:36:19 -07:00 committed by GitHub
parent 8ad5007f8f
commit 711cc99f4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,7 +132,9 @@ std::unordered_set<NodeIndex> GetCpuPreferredNodes(const onnxruntime::GraphViewe
if (place_in_cpu) {
cpu_nodes.insert(cur);
LOGS_DEFAULT(INFO) << "Force fallback to CPU execution for node: " << node->Name();
LOGS_DEFAULT(INFO) << "ORT optimization- Force fallback to CPU execution for node: " << node->Name()
<< " because the CPU execution path is deemed faster than overhead involved with execution on other EPs "
<< " capable of executing this node";
for (auto* output : node->OutputDefs()) {
cpu_output_args.insert(output);
}