singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [singa] joddiy opened a new issue #635: cannot init scalar tensor
Date Tue, 24 Mar 2020 06:23:37 GMT
joddiy opened a new issue #635: cannot init scalar tensor
   Hi, @dcslin , since some onnx models need scalar-tensor but we can't support.
   The error is:
   > Traceback (most recent call last):
     File "../../test/python/", line 4015, in test_tmp
       x = tensor.from_numpy(x)
     File "/usr/local/lib/python3.5/dist-packages/singa/", line 766, in from_numpy
     File "/usr/local/lib/python3.5/dist-packages/singa/", line 307, in copy_from_numpy
       assert np_array.size == self.size(), 'tensor shape should be the same'
   AssertionError: tensor shape should be the same
   please use this test case:
   x = np.array(256, ndmin=0).astype(np.int32)
   x = tensor.from_numpy(x)

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message