Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-1321 Compiler feature extensions
  3. SYSTEMDS-1659

New rewrite eliminate unnecessary aggregates

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • SystemML 0.15
    • Compiler
    • None

    Description

      There are some example scripts which use unnecessary aggregations for convenience of a consistent specification - hence, we should automatically eliminate these unnecessary aggregates, via a simple static rewrite. For example, in below script, we should remove the unnecessary rowSums, but the same applies to min-min, max-max, sum_sq-sum.

       # nn lib - cross_entropy_loss::forward (returns only loss)
       N = nrow(y)
       eps = 1e-10  # numerical stability to avoid log(0)
       losses = rowSums(-y * log(pred+eps))
       loss = sum(losses) / N
      

      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: