sxjscience commented on issue #18878:
URL: 
https://github.com/apache/incubator-mxnet/issues/18878#issuecomment-670791217


   OK, just realized that numpy does not support None either so it's expected.
   ```
   ~/miniconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py in sum(a, 
axis, dtype, out, keepdims, initial, where)
      2227 
      2228     return _wrapreduction(a, np.add, 'sum', axis, dtype, out, 
keepdims=keepdims,
   -> 2229                           initial=initial, where=where)
      2230 
      2231 
   
   ~/miniconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py in 
_wrapreduction(obj, ufunc, method, axis, dtype, out, **kwargs)
        88                 return reduction(axis=axis, out=out, **passkwargs)
        89 
   ---> 90     return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
        91 
        92 
   
   TypeError: an integer is required (got type NoneType)
   ```


----------------------------------------------------------------
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:
[email protected]


Reply via email to