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

Method Get

tensorflow/compiler/xrt/client/xrt_tf_client.h:270–275  ·  view source on GitHub ↗

Returns either an error or a pointer to the RecvTensorResponse. Blocks waiting for the future if it is not yet available.

Source from the content-addressed store, hash-verified

268 // Returns either an error or a pointer to the RecvTensorResponse.
269 // Blocks waiting for the future if it is not yet available.
270 xla::StatusOr<RecvTensorResponse*> Get() {
271 done_.WaitForNotification();
272 absl::MutexLock lock(&mu_);
273 if (!status_.ok()) return status_;
274 return &value_;
275 }
276
277 private:
278 friend class XrtTfContext;

Callers 3

ToLiteralMethod · 0.45
InitializeTPUMethod · 0.45
TEST_FFunction · 0.45

Calls 2

WaitForNotificationMethod · 0.45
okMethod · 0.45

Tested by 1

TEST_FFunction · 0.36