Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-2036

RemoveEmpty with selection vector updates nnz incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • SystemML 1.0.0
    • None
    • None

    Description

      Detailed sparsity checks revealed an issue with removeEmpty and selection vectors, where not all rows with non zeros are selected. Since we only copy the nnz from the input, the output meta data is wrong which can lead to incorrect sparse/dense representations and in the worst-case incorrect results (e.g., for sum(X!=0)).

      Caused by: org.apache.sysml.runtime.DMLRuntimeException: Matrix nnz meta data was incorrect: (_mVar7023, actual=4515, expected=4514, inst=CP°rmempty°margin=rows°select=_mVar7022°target=_mVar7009°bRmEmptyBC=false°_mVar7023·MATRIX·DOUBLE)
              at org.apache.sysml.runtime.controlprogram.ProgramBlock.checkSparsity(ProgramBlock.java:384)
              at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:297)
              ... 10 more
      

      Attachments

        Activity

          People

            mboehm7 Matthias Boehm
            mboehm7 Matthias Boehm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: