Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sqrt of a negative value return zero instead of NaN #3852

Open
River861 opened this issue May 18, 2021 · 1 comment
Open

Sqrt of a negative value return zero instead of NaN #3852

River861 opened this issue May 18, 2021 · 1 comment

Comments

@River861
Copy link

Hi, I found that sqrt function in cntk returns 0 instead of NaN for negative numbers, which is different from other deep learning libraries, such as tensorflow and theano. I'm not sure if this is a bug?

>>> import cntk as C
>>> C.sqrt(-1).eval()
array(0., dtype=float32)
>>> C.sqrt(-2).eval()
array(0., dtype=float32)
>>> C.sqrt(-4).eval()
array(0., dtype=float32)

Windows 10 x64, cntk 2.7.0, CPU only.

@dmytrobaranovskyi
Copy link

Looks like the project is dead...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants