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

Method MakeFastMemTensorFromProto

tensorflow/compiler/jit/xla_device.cc:533–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533Status XlaDevice::MakeFastMemTensorFromProto(
534 const TensorProto& tensor_proto, const AllocatorAttributes alloc_attrs,
535 Tensor* tensor) {
536 VLOG(1) << "XlaDevice::MakeFastMemTensorFromProto";
537 std::pair<XlaDeviceContext*, XlaDeviceContext*> device_contexts;
538 {
539 mutex_lock lock(mu_);
540 TF_ASSIGN_OR_RETURN(device_contexts, GetDeviceContextLocked());
541 }
542 return MakeTensorFromProto(device_contexts.second, tensor_proto, alloc_attrs,
543 tensor);
544}
545
546void XlaDevice::SetAllowsSyncOnCompletion(bool sync_on_completion) {
547 mutex_lock lock(mu_);

Callers

nothing calls this directly

Calls 2

MakeTensorFromProtoFunction · 0.85
TF_ASSIGN_OR_RETURNFunction · 0.50

Tested by

no test coverage detected