Skip to content

Commit 339b75c

Browse files
committed
added debug logs for loading/executing model methods
1 parent 587f2f8 commit 339b75c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runtime/executor/method.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ Result<Method> Method::load(
754754
temp_allocator = platform_allocator;
755755
}
756756
Method method(program, memory_manager, event_tracer, temp_allocator);
757-
757+
ET_LOG(Debug, "Loading method: %s.", s_plan->name()->c_str());
758758
Error err = method.init(s_plan, named_data_map);
759759
if (err != Error::Ok) {
760760
return err;
@@ -1522,6 +1522,7 @@ Error Method::execute() {
15221522
initialized(),
15231523
NotSupported,
15241524
"Cannot execute until method has been initialized.");
1525+
ET_LOG(Debug, "Executing method: %s.", method_meta().name());
15251526

15261527
// Chains are executed sequentially today, but future async designs may
15271528
// branch and run many in parallel or out of order.

0 commit comments

Comments
 (0)