You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With PyTorch, calculate the mean of tensor of 60000x28x28 in float64 with value between [0,1]
Save this result in a variable "a"
b = a.numpy() to get the variable in a array of size [1] with the value.
Try to do: a.numpy()[0] or b[0]
Note in fact, this issue could probably just be closed. The Spyder "Issue report" just open when I got this error.
Traceback
File "/home/vincent/miniconda2/envs/PyTorch/lib/python2.7/site-packages/spyder/widgets/variableexplorer/arrayeditor.py", line 395, in setEditorData
text = from_qvariant(index.model().data(index, Qt.DisplayRole), str)
File "/home/vincent/miniconda2/envs/PyTorch/lib/python2.7/site-packages/spyder/widgets/variableexplorer/arrayeditor.py", line 257, in data
value =self.get_value(index)
File "/home/vincent/miniconda2/envs/PyTorch/lib/python2.7/site-packages/spyder/widgets/variableexplorer/arrayeditor.py", line 250, in get_value
value =self._data[i, j]
IndexError: too many indices for array
The text was updated successfully, but these errors were encountered:
PoissonChasseur
changed the title
I was just looking to float64
Look to value of float64 in the Variable explorer and got an error
Oct 27, 2018
PoissonChasseur
changed the title
Look to value of float64 in the Variable explorer and got an error
Look to value of a float64 value in the variable explorer and got an error
Oct 27, 2018
PoissonChasseur
changed the title
Look to value of a float64 value in the variable explorer and got an error
Error while look to first emplacement of a scalar numpy array
Oct 27, 2018
PoissonChasseur
changed the title
Error while look to first emplacement of a scalar numpy array
Error while look to the first emplacement of a scalar numpy array
Oct 27, 2018
In fact, I can have the message of error with any Numpy array of only 1 value that will be like
Traceback (most recent call last):
File "<ipython-input-90-6a1284577a36>", line 1, in <module>
a[0]
IndexError: too many indices for array
But when I had the error when I opened this problem, even Anaconda said that there was something broken and that I could not install another library after (I tried with " conda install pyopengl "to repair Spyder). I just uninstall Spyder and reinstall it to be sure.
I was not really able after to reproduce the same pattern after.
Description
What steps will reproduce the problem?
(Step #1 to #3 can be skip)
Note in fact, this issue could probably just be closed. The Spyder "Issue report" just open when I got this error.
Traceback
Versions
Dependencies
The text was updated successfully, but these errors were encountered: