MCPcopy Create free account
hub / github.com/NVIDIA/DALI / CreateTask

Method CreateTask

dali/pipeline/executor/executor2/exec_node_task.cc:572–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570// ExecNodeTask
571
572tasking::SharedTask ExecNodeTask::CreateTask(ExecNode *node, const WorkspaceParams &params) {
573 if (node->is_pipeline_output) {
574 return tasking::Task::Create(
575 OutputTask(node, params).GetRunnable());
576 } else {
577 int nout = node->outputs.size();
578 // the size of outputs is limited by the compile-time operator schema
579 // that uses int to represent the number of outputs
580 assert(nout >= 0 && static_cast<size_t>(nout) == node->outputs.size());
581 return tasking::Task::Create(
582 nout,
583 OpTask(node, params).GetRunnable());
584 }
585}
586
587void ClearWorkspacePayload(Workspace &ws, ExecNode &node) {
588 DomainTimeRange r("[Exec] ClearWokspacePayload", RangeBase::kMagenta);

Callers

nothing calls this directly

Calls 5

CreateFunction · 0.85
OutputTaskClass · 0.85
OpTaskClass · 0.85
GetRunnableMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected