Improved code formatting
This commit is contained in:
parent
8d26ac88ef
commit
3e678dc5f8
tensorflow/core/common_runtime
@ -65,10 +65,10 @@ void IntraProcessRendezvous::SameWorkerRecvDone(
|
|||||||
StatusCallback done) {
|
StatusCallback done) {
|
||||||
// Do a quick copy (sharing the underlying buffer) if both tensors
|
// Do a quick copy (sharing the underlying buffer) if both tensors
|
||||||
// are on host memory.
|
// are on host memory.
|
||||||
const bool src_host = (send_args.alloc_attrs.on_host() ||
|
const bool src_host =
|
||||||
parsed.src.type == "CPU");
|
(send_args.alloc_attrs.on_host() || parsed.src.type == "CPU");
|
||||||
const bool dst_host = (recv_args.alloc_attrs.on_host() ||
|
const bool dst_host =
|
||||||
parsed.dst.type == "CPU");
|
(recv_args.alloc_attrs.on_host() || parsed.dst.type == "CPU");
|
||||||
if (src_host && dst_host) {
|
if (src_host && dst_host) {
|
||||||
*out = in;
|
*out = in;
|
||||||
done(Status::OK());
|
done(Status::OK());
|
||||||
|
Loading…
Reference in New Issue
Block a user