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

Commit

Permalink
do not use reference for shape
Browse files Browse the repository at this point in the history
  • Loading branch information
azai91 committed Jun 27, 2018
1 parent 4c3089f commit dd3e594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cpp/operator/mkldnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ std::vector<NDArrayAttrs> GetTestInputArrays(bool rand = false, int num_inputs =
int slice_amount = 1;
if (dim == 0)
slice_amount = num_inputs;
for (auto &shape : shapes) {
for (auto shape : shapes) {
if (dim >= shape.ndim())
continue;
shape[dim] = shape[dim] * num_inputs;
Expand Down

0 comments on commit dd3e594

Please sign in to comment.