| 531 | } |
| 532 | |
| 533 | Status 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 | |
| 546 | void XlaDevice::SetAllowsSyncOnCompletion(bool sync_on_completion) { |
| 547 | mutex_lock lock(mu_); |
nothing calls this directly
no test coverage detected