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

Method DeviceOrHostCPU

tensorflow/core/common_runtime/eager/tensor_handle.cc:286–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286Device* TensorHandle::DeviceOrHostCPU(EagerContext* ctx) const {
287 return (device_ == nullptr) ? ctx->HostCPU() : device_;
288}
289
290Status TensorHandle::Shape(tensorflow::TensorShape* shape) {
291 TF_RETURN_IF_ERROR(WaitReady());

Callers 7

EagerRemoteExecuteFunction · 0.80
MaybeUpdateOpDeviceFunction · 0.80
EagerCopyToDeviceFunction · 0.80
RemoteCopyNodeMethod · 0.80
StartSendMethod · 0.80
TEST_FFunction · 0.80

Calls 1

HostCPUMethod · 0.80

Tested by 1

TEST_FFunction · 0.64