MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / execute_task

Function execute_task

src/graph/Workload.cpp:41–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void execute_task(ExecutionTask &task)
42{
43 if (task.task)
44 {
45 task.task->run();
46 }
47#ifdef ARM_COMPUTE_ASSERTS_ENABLED
48 else if (task.node->type() == NodeType::PrintLayer)
49 {
50 auto print_node = utils::cast::polymorphic_downcast<PrintLayerNode *>(task.node);
51 auto input_handle = print_node->input(0)->handle();
52 auto transform = print_node->transform();
53
54 input_handle->map(true);
55 ITensor *input = transform ? transform(&input_handle->tensor()) : &input_handle->tensor();
56 input->print(print_node->stream(), print_node->format_info());
57 input_handle->unmap();
58 }
59#endif // ARM_COMPUTE_ASSERTS_ENABLED
60}
61
62void ExecutionTask::prepare()
63{

Callers

nothing calls this directly

Calls 11

transformFunction · 0.85
handleMethod · 0.80
inputMethod · 0.80
transformMethod · 0.80
format_infoMethod · 0.80
runMethod · 0.45
typeMethod · 0.45
mapMethod · 0.45
tensorMethod · 0.45
printMethod · 0.45
unmapMethod · 0.45

Tested by

no test coverage detected