Commit ba77bdec authored by oscar's avatar oscar

提交修改

parent 3e1a7d8d
......@@ -12,7 +12,7 @@ uint64_t GetCurTime()
return ttt;
}
std::string GetMatrixStr(float* data_ptr, int col, int row)
std::string GetMatrixStr(const float* data_ptr, int col, int row)
{
std::string str;
for (int i = 0; i < row; i++)
......@@ -27,7 +27,7 @@ std::string GetMatrixStr(float* data_ptr, int col, int row)
return str;
}
std::string GetMatrixStr(std::vector<std::vector<float>>& data_ptr, int col, int row)
std::string GetMatrixStr(const std::vector<std::vector<float>>& data_ptr, int col, int row)
{
std::string str;
for (int i = 0; i < col; i++)
......
......@@ -5,5 +5,5 @@
uint64_t GetCurTime();
std::string GetMatrixStr(float* data_ptr, int col, int row);
std::string GetMatrixStr(std::vector<std::vector<float>>& data_ptr, int col, int row);
std::string GetMatrixStr(const float* data_ptr, int col, int row);
std::string GetMatrixStr(const std::vector<std::vector<float>>& data_ptr, int col, int row);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment