You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/01/26 09:37:07 UTC
[GitHub] Feywell opened a new issue #9572: Return a NaN when using operator ( ** ) on Windows version with GPU
Feywell opened a new issue #9572: Return a NaN when using operator ( ** ) on Windows version with GPU
URL: https://github.com/apache/incubator-mxnet/issues/9572
## Description
I find a bug when using ** operator to compute grad clipping (**using gpu**)?like this:
> p=nd.array([-7.11766724e-03,-1.11747989e-02,-3.17790220e-03,-2.94371421e-04],ctx=mx.gpu(0))
> print(p)
> print(p**2)
result as following?
> [-0.00711767 -0.0111748 -0.0031779 -0.00029437]
<NDArray 4 @gpu(0)>
[ nan nan nan nan]
<NDArray 4 @gpu(0)>
But it is ok on CPU , like that:
> a=nd.array([-7.11766724e-03,-1.11747989e-02,-3.17790220e-03,-2.94371421e-04])
print(a)
print(a**2)
result as following:
> [-0.00711767 -0.0111748 -0.0031779 -0.00029437]
<NDArray 4 @cpu(0)>
[ 5.06611868e-05 1.24876125e-04 1.00990619e-05 8.66545307e-08]
<NDArray 4 @cpu(0)>
## Environment info (Required)
> ----------Python Info----------
Version : 3.6.1
Compiler : MSC v.1900 64 bit (AMD64)
Build : ('default', 'May 11 2017 13:25:24')
Arch : ('64bit', 'WindowsPE')
------------Pip Info-----------
Version : 9.0.1
Directory : E:\Anaconda2\envs\gluon\lib\site-packages\pip
----------MXNet Info-----------
Version : 1.0.0
Directory : E:\Anaconda2\envs\gluon\lib\site-packages\mxnet
Hashtag not found. Not installed from pre-built package.
----------System Info----------
Platform : Windows-10-10.0.15063-SP0
system : Windows
node : DESKTOP-OALBEUS
release : 10
version : 10.0.15063
----------Hardware Info----------
machine : AMD64
processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
Name
Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
Package used (Python/R/Scala/Julia):
(I'm using Python 3.6.1)
**PS: error also find in ?win_amd64??**
> mxnet-cu80-1.0.1b20180102
mxnet-cu80-1.0.0
mxnet-cu80-1.0.0b20171213
python version? 3.6.0
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services