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