Details
-
Bug
-
Status: To Do
-
Major
-
Resolution: Unresolved
-
None
Description
Hi, there.
I fix the wrong result of sum(inf, inf) and mean(inf, inf).
Test Case:
```python
import mxnet as mx
import numpy as np
x = mx.nd.array([np.inf, np.inf])
print(mx.nd.mean)
print(mx.nd.sum)
x = mx.nd.array([-np.inf, -np.inf])
print(mx.nd.mean)
print(mx.nd.sum)
x = mx.nd.array([np.inf, -np.inf])
print(mx.nd.mean)
print(mx.nd.sum)
```
The result should be `inf` rather than `nan`.
Attachments
Issue Links
- links to