MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / BusyWaitAndCheck

Function BusyWaitAndCheck

oneflow/core/framework/tensor_rpc_util.cpp:174–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174Maybe<void> BusyWaitAndCheck(std::shared_ptr<CheckConsistencyAsyncTransportCtx>& ctx) {
175 JUST_MSG(ctx->WaitDone(), kAsymmetricCodeErrorMsg);
176 JUST(ctx->Check());
177 return Maybe<void>::Ok();
178}
179
180Maybe<void> RunCallback(const std::shared_ptr<one::Tensor>& tensor,
181 const std::function<Maybe<void>()>& Callback) {

Callers 1

CallMethod · 0.85

Calls 2

WaitDoneMethod · 0.80
CheckMethod · 0.45

Tested by

no test coverage detected