[mlpack-git] master: fix performance issue--forgot to move name parameters (fe1b6b9)
gitdub at mlpack.org
gitdub at mlpack.org
Thu May 26 11:18:20 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/290977da9100ff7e98dec0d511ef701bea70e8d2...ec1c46a5fc6c36e981ff381e2c291e824bf41a8e
>---------------------------------------------------------------
commit fe1b6b96fdfa12709df03b730614a00ea97a3747
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date: Thu May 26 23:18:20 2016 +0800
fix performance issue--forgot to move name parameters
>---------------------------------------------------------------
fe1b6b96fdfa12709df03b730614a00ea97a3747
src/mlpack/core/data/split_data.hpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/core/data/split_data.hpp b/src/mlpack/core/data/split_data.hpp
index 38196fd..1231095 100644
--- a/src/mlpack/core/data/split_data.hpp
+++ b/src/mlpack/core/data/split_data.hpp
@@ -111,7 +111,10 @@ TrainTestSplit(const arma::Mat<T>& input,
TrainTestSplit(input, inputLabel, trainData, testData, trainLabel, testLabel,
testRatio);
- return std::make_tuple(trainData, testData, trainLabel, testLabel);
+ return std::make_tuple(std::move(trainData),
+ std::move(testData),
+ std::move(trainLabel),
+ std::move(testLabel));
}
} // namespace data
More information about the mlpack-git
mailing list