Skip to content

Commit

Permalink
Fix a bug in fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
zheng-da committed Jan 13, 2018
1 parent 567603c commit 27fa5ef
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/operator/nn/mkldnn/mkldnn_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,7 @@ void FallBackCompute(FCompute fn, const nnvm::NodeAttrs &attrs,
std::vector<NDArray> in_bufs;
std::vector<TBlob> in_blobs(inputs.size());
for (size_t i = 0; i < in_blobs.size(); i++) {
if (inputs[i].IsDefault()) {
in_blobs[i] = inputs[i].data();
} else {
in_bufs.emplace_back(inputs[i].shape(), inputs[i].ctx(),
false, inputs[i].dtype());
auto mem = inputs[i].GetMKLDNNData();
in_bufs.back().CopyFrom(*mem);
in_blobs[i] = in_bufs.back().data();
}
}
std::vector<TBlob> out_blobs(outputs.size());
for (size_t i = 0; i < out_blobs.size(); i++) {
Expand Down

0 comments on commit 27fa5ef

Please sign in to comment.