| 81 | } |
| 82 | |
| 83 | bool 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 | |
| 94 | bool XlaInterpreterExecutor::CreateStreamDependency(Stream *dependent, |
| 95 | Stream *other) { |
nothing calls this directly
no test coverage detected