MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / HostCallback

Method HostCallback

tensorflow/compiler/xla/service/interpreter/executor.cc:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool XlaInterpreterExecutor::HostCallback(
84 Stream *stream, std::function<port::Status()> callback) {
85 AsExecutorStream(stream)->EnqueueTask([callback]() {
86 port::Status s = callback();
87 if (!s.ok()) {
88 LOG(WARNING) << "Host callback failed: " << s;
89 }
90 });
91 return true;
92}
93
94bool XlaInterpreterExecutor::CreateStreamDependency(Stream *dependent,
95 Stream *other) {

Callers

nothing calls this directly

Calls 4

AsExecutorStreamFunction · 0.85
callbackFunction · 0.85
EnqueueTaskMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected