From 458b302c39ffbf11e293ea115f8eeca8eec9bdc5 Mon Sep 17 00:00:00 2001 From: NippunSharma Date: Wed, 27 Jan 2021 00:31:58 +0530 Subject: [PATCH] removed TUPLE_TYPE --- src/mlpack/core/util/io.cpp | 2 +- src/mlpack/core/util/param.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mlpack/core/util/io.cpp b/src/mlpack/core/util/io.cpp index 2c9efefb3a..9dd571e369 100644 --- a/src/mlpack/core/util/io.cpp +++ b/src/mlpack/core/util/io.cpp @@ -289,7 +289,7 @@ void IO::CheckInputMatrices() { IO::CheckInputMatrix(IO::GetParam(paramName), paramName); } - else if (paramType == "TUPLE_TYPE") + else if (paramType == "std::tuple") { IO::CheckInputMatrix( std::get<1>(IO::GetParam(paramName)), paramName); diff --git a/src/mlpack/core/util/param.hpp b/src/mlpack/core/util/param.hpp index c820df4b65..73f462e464 100644 --- a/src/mlpack/core/util/param.hpp +++ b/src/mlpack/core/util/param.hpp @@ -1014,8 +1014,8 @@ using DatasetInfo = DatasetMapper; * https://github.com/mlpack/mlpack/issues/100 for more information. */ #define PARAM_MATRIX_AND_INFO_IN(ID, DESC, ALIAS) \ - PARAM_IN(std::tuple, ID, DESC, \ - ALIAS, std::tuple(), false) + PARAM_IN(std::tuple, ID, DESC, ALIAS, \ + std::tuple(), false) /** * Define an input model. From the command line, the user can specify the file