From efb345e4cc4d4be1c6133c5f245e0c82928dc48c Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Sat, 16 Oct 2021 11:48:44 -0400 Subject: [PATCH] Don't print the filename unless it was actually given. --- src/mlpack/methods/det/det_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mlpack/methods/det/det_main.cpp b/src/mlpack/methods/det/det_main.cpp index 4c813a1899..4ad8b3b88e 100644 --- a/src/mlpack/methods/det/det_main.cpp +++ b/src/mlpack/methods/det/det_main.cpp @@ -238,7 +238,7 @@ void BINDING_FUNCTION(util::Params& params, util::Timers& timers) arma::Row counters; timers.Start("det_test_set_tagging"); - if (!ofs.is_open()) + if (!ofs.is_open() && tagFile != "") { Log::Warn << "Unable to open file '" << tagFile << "' to save tag membership info." << std::endl;