From c7f245892eab275d9c60e3005ec8030168a0936d Mon Sep 17 00:00:00 2001 From: hedaoyuan Date: Wed, 9 Aug 2017 21:23:02 +0800 Subject: [PATCH] Fix some warning. --- paddle/math/CpuSparseMatrix.h | 4 ++++ paddle/math/SparseMatrix.h | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/paddle/math/CpuSparseMatrix.h b/paddle/math/CpuSparseMatrix.h index 9676f8864f8..6ba795d5b73 100644 --- a/paddle/math/CpuSparseMatrix.h +++ b/paddle/math/CpuSparseMatrix.h @@ -302,6 +302,10 @@ public: bool isSparse() const { return true; } private: + using Matrix::mul; using Matrix::copyFrom; + using Matrix::rowMax; + using Matrix::print; + using Matrix::subMatrix; }; } // namespace paddle diff --git a/paddle/math/SparseMatrix.h b/paddle/math/SparseMatrix.h index f8d9ffc29fb..8cd6b71f8f5 100644 --- a/paddle/math/SparseMatrix.h +++ b/paddle/math/SparseMatrix.h @@ -14,8 +14,8 @@ limitations under the License. */ #pragma once #include -#include "Matrix.h" #include "CpuSparseMatrix.h" +#include "Matrix.h" namespace paddle { @@ -234,6 +234,9 @@ public: private: using Matrix::mul; using Matrix::copyFrom; + using Matrix::rowMax; + using Matrix::print; + using Matrix::subMatrix; }; } // namespace paddle -- GitLab