| 165 | } |
| 166 | |
| 167 | void SchedClosureAfter(int64 micros, std::function<void()> closure) override { |
| 168 | // TODO(b/27290852): Consuming a thread here is wasteful, but this |
| 169 | // code is (currently) only used in the case where a step fails |
| 170 | // (AbortStep). This could be replaced by a timer thread |
| 171 | SchedClosure([this, micros, closure]() { |
| 172 | SleepForMicroseconds(micros); |
| 173 | closure(); |
| 174 | }); |
| 175 | } |
| 176 | |
| 177 | Status LoadLibrary(const char* library_filename, void** handle) override { |
| 178 | return tensorflow::internal::LoadLibrary(library_filename, handle); |
nothing calls this directly
no test coverage detected