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

Method GetRunnable

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

Gets a functor that runs the operator. */

Source from the content-addressed store, hash-verified

42 public:
43 /** Gets a functor that runs the operator. */
44 auto GetRunnable() && {
45 assert(!node_->is_pipeline_output);
46 return [self = std::move(*this)](tasking::Task *t) mutable {
47 self.task_ = t;
48 return self.Run();
49 };
50 }
51
52 private:
53 /** Returns the stream in which the output is consumed if the consumers work on the same stream.

Callers 1

CreateTaskMethod · 0.45

Calls 1

RunMethod · 0.95

Tested by

no test coverage detected