Uploaded image for project: 'Apache MXNet (Retired)'
  1. Apache MXNet (Retired)
  2. MXNET-1426

Fix the wrong result of sum(inf, inf) and mean(inf, inf)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: To Do
    • Major
    • Resolution: Unresolved
    • Apache MXNet Backend
    • 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

        Activity

          People

            Unassigned Unassigned
            wkcn Jackie Wu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 6.5h
                6.5h