Skip to content

Commit

Permalink
bug fix in ConvolutionEngineTests.cpp: when testing CPU, use HWC layout
Browse files Browse the repository at this point in the history
  • Loading branch information
frankseide committed Jan 2, 2016
1 parent 2752901 commit 5fc6f34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/UnitTests/MathTests/ConvolutionEngineTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ fprintf(stderr, "ConvolutionEngineTests.cpp %d\n", __LINE__);

for (int deviceId : { -1, 0 })
{
fprintf(stderr, "ConvolutionEngineTests.cpp %d\n", __LINE__);
auto fact = ConvFact::Create(deviceId, ConvFact::EngineType::Auto, ImageLayoutKind::CHW);
fprintf(stderr, "ConvolutionEngineTests.cpp %d\n", __LINE__);
auto fact = ConvFact::Create(deviceId, ConvFact::EngineType::Auto, deviceId >= 0 ? ImageLayoutKind::CHW : ImageLayoutKind::HWC);
fprintf(stderr, "ConvolutionEngineTests.cpp %d\n", __LINE__);
auto eng = fact->CreateConvEngine(deviceId, 0);
fprintf(stderr, "ConvolutionEngineTests.cpp %d\n", __LINE__);
Expand Down

0 comments on commit 5fc6f34

Please sign in to comment.