Skip to content

Commit

Permalink
examples: use correct data type for batch
Browse files Browse the repository at this point in the history
  • Loading branch information
msotoflo committed Jun 12, 2017
1 parent 095d412 commit ebf9bd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/simple_net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ using namespace mkldnn;
void simple_net(){
auto cpu_engine = engine(engine::cpu, 0);

const uint32_t batch = 8;
const int batch = 8;

std::vector<float> net_src(batch * 3 * 227 * 227);
std::vector<float> net_dst(batch * 96 * 27 * 27);
Expand Down
2 changes: 1 addition & 1 deletion examples/simple_training_net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void simple_net()
{
auto cpu_engine = engine(engine::cpu, 0);

const uint32_t batch = 32;
const int batch = 32;

std::vector<float> net_src(batch * 3 * 227 * 227);
std::vector<float> net_dst(batch * 96 * 27 * 27);
Expand Down

0 comments on commit ebf9bd7

Please sign in to comment.