From b44d9465f6bd1ce7e927b6bfca5a86988377ffea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= <1671644+arrufat@users.noreply.github.com> Date: Fri, 3 Apr 2020 20:58:05 +0900 Subject: [PATCH] Fix warning in dnn_trainer initialization list (#2049) The thread pool was initialized after the network, so it lead to a reorder warning in GCC 9.3.0 --- dlib/dnn/trainer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/dnn/trainer.h b/dlib/dnn/trainer.h index 401f36b7c..fb88691d8 100644 --- a/dlib/dnn/trainer.h +++ b/dlib/dnn/trainer.h @@ -107,7 +107,7 @@ namespace dlib const solver_type& solver_, const std::vector& cuda_extra_devices, std::shared_ptr thread_pools_ = std::shared_ptr() - ) : job_pipe(0), net(net_), thread_pools(thread_pools_) + ) : job_pipe(0), thread_pools(thread_pools_), net(net_) { devices.push_back(std::make_shared(dlib::cuda::get_device(), net, solver_));