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

Commit

Permalink
make MKLDNN macro simple for imperative_utils.h (#16652)
Browse files Browse the repository at this point in the history
  • Loading branch information
rongzha1 authored and pengzhao-intel committed Oct 28, 2019
1 parent a9941ff commit a26ef14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/imperative/imperative_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,10 @@ inline void PushFComputeEx(const FComputeEx& fn,
CreateDefaultInputs(inputs, &inputs_fallback);
fn(attrs, opctx, inputs_fallback, req, outputs);
} else {
#endif
fn(attrs, opctx, inputs, req, outputs);
#if MXNET_USE_MKLDNN == 1
}
#else
fn(attrs, opctx, inputs, req, outputs);
#endif
if (ctx.dev_mask() == gpu::kDevMask && exec_type == ExecType::kSync && !rctx.is_bulk) {
rctx.get_stream<gpu>()->Wait();
Expand Down Expand Up @@ -548,10 +548,10 @@ inline void PushOperator(const OpStatePtr& state,
CreateDefaultInputs(inputs, &inputs_fallback);
fcompute_ex(state, opctx, inputs_fallback, req, outputs);
} else {
#endif
fcompute_ex(state, opctx, inputs, req, outputs);
#if MXNET_USE_MKLDNN == 1
}
#else
fcompute_ex(state, opctx, inputs, req, outputs);
#endif
if (ctx.dev_mask() == gpu::kDevMask && exec_type == ExecType::kSync
&& rctx.get_stream<gpu>() && !rctx.is_bulk) {
Expand Down

0 comments on commit a26ef14

Please sign in to comment.