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

Method Await

tensorflow/compiler/xla/python/tpu_driver/grpc_tpu_driver.cc:445–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443GrpcEvent::~GrpcEvent() { stream_->DeleteEvent(id_); }
444
445Status GrpcEvent::Await() {
446 auto opt_status = stream_->WaitForEvent(id_, absl::InfiniteDuration());
447 return opt_status.value();
448}
449
450absl::optional<Status> GrpcEvent::AwaitWithTimeout(absl::Duration duration) {
451 return stream_->WaitForEvent(id_, duration);

Callers 5

CompileIfKeyAbsentMethod · 0.45
ExecuteOnLocalDevicesMethod · 0.45
WaitForEventOnStreamMethod · 0.45
WorkLoopMethod · 0.45
BlockHostUntilReadyMethod · 0.45

Calls 2

WaitForEventMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected