diff options
author | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2017-03-10 21:19:49 +0300 |
---|---|---|
committer | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2017-03-10 21:19:49 +0300 |
commit | 51dc3306cafc6108dc475079bae88c864b47b647 (patch) | |
tree | 04837d14d6f29979da1e6cd64c4e37454f7d5a48 | |
parent | 359ec7bd9860dc41d10d1de008d1b37605c125df (diff) |
More fixes related to logging.
-rw-r--r-- | src/gpu/decoder/ape_penalty.cu | 2 | ||||
-rw-r--r-- | src/gpu/decoder/encoder_decoder.cu | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/decoder/ape_penalty.cu b/src/gpu/decoder/ape_penalty.cu index 2f17cd23..a912bd36 100644 --- a/src/gpu/decoder/ape_penalty.cu +++ b/src/gpu/decoder/ape_penalty.cu @@ -75,7 +75,7 @@ void ApePenaltyLoader::Load() { penalties_.resize(tvcb.size(), -1.0); if(Has("path")) { - LOG(info) << "Loading APE penalties from " << Get<std::string>("path"); + LOG(info, "Loading APE penalties from {}",Get<std::string>("path")); YAML::Node penalties = YAML::Load(InputFileStream(Get<std::string>("path"))); for(auto&& pair : penalties) { std::string entry = pair.first.as<std::string>(); diff --git a/src/gpu/decoder/encoder_decoder.cu b/src/gpu/decoder/encoder_decoder.cu index da659f23..ef42aa01 100644 --- a/src/gpu/decoder/encoder_decoder.cu +++ b/src/gpu/decoder/encoder_decoder.cu @@ -141,7 +141,7 @@ void EncoderDecoderLoader::Load(const God &god) { for(auto d : devices) { devicePool.enqueue([d, &path, this] { - LOG(info, "Loading model {} onto gpu", path, d); + LOG(info, "Loading model {} onto gpu {}", path, d); HANDLE_ERROR(cudaSetDevice(d)); weights_[d].reset(new Weights(path, d)); }); |