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

Method HostCallback

tensorflow/stream_executor/stream_executor_internal.cc:23–30  ·  view source on GitHub ↗

The default implementation just calls the other HostCallback method. It should make all existing code that uses a void() callback still work.

Source from the content-addressed store, hash-verified

21// The default implementation just calls the other HostCallback method.
22// It should make all existing code that uses a void() callback still work.
23bool StreamExecutorInterface::HostCallback(Stream* stream,
24 std::function<void()> callback) {
25 return HostCallback(
26 stream, std::function<port::Status()>([callback]() -> port::Status {
27 callback();
28 return port::Status::OK();
29 }));
30}
31
32} // namespace internal
33} // namespace stream_executor

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected