Skip to content

Commit

Permalink
fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz committed Jan 7, 2017
1 parent 7bc4680 commit 75b9fe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/caffelib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ namespace dd
for (auto i: _gpuid)
LOG(INFO) << "Using GPU " << i << std::endl;
}
#else
(void)ad;
#endif
}

Expand Down Expand Up @@ -1497,8 +1499,8 @@ namespace dd
update_in_memory_net_and_solver(solver_param,cad,inputc,has_mean_file,user_batch_size,batch_size,test_batch_size,test_iter);

// parameters
bool gpu = _gpu;
#ifndef CPU_ONLY
bool gpu = _gpu;
if (ad_mllib.has("gpu"))
{
gpu = ad_mllib.get("gpu").get<bool>();
Expand Down

0 comments on commit 75b9fe9

Please sign in to comment.