Repository: incubator-singa
Updated Branches:
  refs/heads/master 0cf960c96 -> 29b87b991


SINGA-369 fix the errors in examples
1.fix the error of "Tensor object has no attribute singa_tensor"


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

Branch: refs/heads/master
Commit: 01b29b3892f09acc82cef1e1e74d1f175c5c077c
Parents: b4ea650
Author: sheyujian <[email protected]>
Authored: Thu May 17 13:12:35 2018 +0800
Committer: sheyujian <[email protected]>
Committed: Thu May 17 13:12:35 2018 +0800

----------------------------------------------------------------------
 python/singa/tensor.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/01b29b38/python/singa/tensor.py
----------------------------------------------------------------------
diff --git a/python/singa/tensor.py b/python/singa/tensor.py
index 2fcadb4..05e37c3 100644
--- a/python/singa/tensor.py
+++ b/python/singa/tensor.py
@@ -781,9 +781,9 @@ def softmax(t, out=None):
         the result Tensor
     '''
     if out is None:
-        return _call_singa_func(singa.SoftMax, t.singa_tensor)
+        return _call_singa_func(singa.SoftMax, t.data)
     else:
-        singa.SoftMax(t.singa_tensor, out.singa_tensor)
+        singa.SoftMax(t.data, out.data)
         return out
 
 

Reply via email to