singa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wang...@apache.org
Subject incubator-singa git commit: fix the bug from using type Shape
Date Sun, 13 May 2018 15:45:18 GMT
Repository: incubator-singa
Updated Branches:
  refs/heads/master 600f27ede -> fa0ed01e3


fix the bug from using type Shape


Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/fa0ed01e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/fa0ed01e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/fa0ed01e

Branch: refs/heads/master
Commit: fa0ed01e3f8893aaca172f064ac251e7a4daa185
Parents: 600f27e
Author: Wang Wei <dcswaw@nus.edu.sg>
Authored: Sun May 13 23:45:05 2018 +0800
Committer: Wang Wei <dcswaw@nus.edu.sg>
Committed: Sun May 13 23:45:05 2018 +0800

----------------------------------------------------------------------
 src/core/tensor/tensor.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/fa0ed01e/src/core/tensor/tensor.cc
----------------------------------------------------------------------
diff --git a/src/core/tensor/tensor.cc b/src/core/tensor/tensor.cc
index d98e6a6..de0d7d2 100644
--- a/src/core/tensor/tensor.cc
+++ b/src/core/tensor/tensor.cc
@@ -366,7 +366,7 @@ Tensor Tensor::Transpose() const {
 
 //transpose with axes
 // TODO(wangwei) the shape and axes should match
-Tensor Tensor::Transpose(Shape axes) const {
+Tensor Tensor::Transpose(const vector<size_t>& axes) const {
   // if(axes.size() != shape_.size()){
   //   std::cout << "Warning: Size of input axes doesn't match size of shape" <<
std::endl;
   //   return void();


Mime
View raw message