Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
azai91 committed Jun 15, 2018
1 parent 97f712c commit 6aa538f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/operator/nn/mkldnn/mkldnn_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ mkldnn::memory *TmpMemMgr::Alloc(const mkldnn::memory::primitive_desc &pd) {
}
}

bool CanWriteTo(const NDArray &out_arr, const NDArray &in_arr, const mkldnn::memory::primitive_desc &desc) {
bool add_same = in_arr.GetMKLDNNData()->get_data_handle() == out_arr.GetMKLDNNData()->get_data_handle();
bool CanWriteTo(const NDArray &out_arr,
const NDArray &in_arr,
const mkldnn::memory::primitive_desc &desc) {
bool add_same = in_arr.GetMKLDNNData()->get_data_handle() ==
out_arr.GetMKLDNNData()->get_data_handle();
bool pdesc_same = out_arr.GetMKLDNNData()->get_primitive_desc() == desc;
return add_same && pdesc_same;
}
Expand Down

0 comments on commit 6aa538f

Please sign in to comment.