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

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed Aug 8, 2019
1 parent 34d03fd commit 6184b5c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/initialize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ LibraryInitializer::LibraryInitializer()
: original_pid_(common::current_process_id()),
mp_worker_nthreads_(dmlc::GetEnv("MXNET_MP_WORKER_NTHREADS", 1)),
cpu_worker_nthreads_(dmlc::GetEnv("MXNET_CPU_WORKER_NTHREADS", 1)),
mp_cv_num_threads_(dmlc::GetEnv("MXNET_MP_OPENCV_NUM_THREADS", 0))
{
mp_cv_num_threads_(dmlc::GetEnv("MXNET_MP_OPENCV_NUM_THREADS", 0)) {
dmlc::InitLogging("mxnet");
engine::OpenMP::Get(); // force OpenMP initialization
install_signal_handlers();
Expand Down Expand Up @@ -146,7 +145,7 @@ void* LibraryInitializer::lib_load(const char* path) {
*/
void LibraryInitializer::lib_close(void* handle) {
std::string libpath;
for (const auto& l: loaded_libs) {
for (const auto& l : loaded_libs) {
if (l.second == handle) {
libpath = l.first;
break;
Expand Down Expand Up @@ -234,7 +233,7 @@ void LibraryInitializer::install_signal_handlers() {
}

void LibraryInitializer::close_open_libs() {
for (const auto& l: loaded_libs) {
for (const auto& l : loaded_libs) {
lib_close(l.second);
}
}
Expand Down

0 comments on commit 6184b5c

Please sign in to comment.