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

Method WaitForNotification

tensorflow/core/common_runtime/direct_session.cc:2431–2447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2429}
2430
2431void DirectSession::WaitForNotification(RunState* run_state,
2432 CancellationManager* cm,
2433 int64 timeout_in_ms) {
2434 const Status status =
2435 WaitForNotification(&run_state->executors_done, timeout_in_ms);
2436 if (!status.ok()) {
2437 {
2438 mutex_lock l(run_state->mu_);
2439 run_state->status.Update(status);
2440 }
2441 cm->StartCancel();
2442 // We must wait for the executors to complete, because they have borrowed
2443 // references to `cm` and other per-step state. After this notification, it
2444 // is safe to clean up the step.
2445 run_state->executors_done.WaitForNotification();
2446 }
2447}
2448
2449::tensorflow::Status DirectSession::WaitForNotification(
2450 Notification* notification, int64 timeout_in_ms) {

Callers 15

AddRequestMethod · 0.45
BlockOnThreadExecutorFunction · 0.45
WaitForEventMethod · 0.45
BlockUntilDoneMethod · 0.45
LoadHsacoMethod · 0.45
LoadPtxMethod · 0.45
TEST_FFunction · 0.45
GetNextWorkLockedMethod · 0.45
ComputeMethod · 0.45
DeregisterCallbackMethod · 0.45
RecvMethod · 0.45

Calls 6

WaitForNotificationFunction · 0.85
StatusClass · 0.50
okMethod · 0.45
UpdateMethod · 0.45
StartCancelMethod · 0.45

Tested by 15

TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
RunTestMethod · 0.36
InitTensorMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
RunMethod · 0.36
RunTestMethod · 0.36