Skip to content

Commit

Permalink
Fix bug that input width and height are reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Jun 1, 2019
1 parent 276f2dd commit 4d918b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnnlibrary/src/ModelBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ModelBuilder::Index ModelBuilder::AddInput(string name, const uint32_t batch,
const uint32_t height,
const uint32_t width,
const uint32_t depth) {
const vector<uint32_t> dimen{batch, width, height, depth};
const vector<uint32_t> dimen{batch, height, width, depth};
return AddInput(name, {Type::TENSOR_FLOAT32, dimen});
}

Expand Down

0 comments on commit 4d918b9

Please sign in to comment.