You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Glenn Weidner (JIRA)" <ji...@apache.org> on 2017/09/09 01:33:00 UTC

[jira] [Updated] (SYSTEMML-1659) New rewrite eliminate unnecessary aggregates

     [ https://issues.apache.org/jira/browse/SYSTEMML-1659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Glenn Weidner updated SYSTEMML-1659:
------------------------------------
    Fix Version/s:     (was: SystemML 1.0)
                   SystemML 0.15

> New rewrite eliminate unnecessary aggregates
> --------------------------------------------
>
>                 Key: SYSTEMML-1659
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-1659
>             Project: SystemML
>          Issue Type: Sub-task
>          Components: Compiler
>            Reporter: Matthias Boehm
>            Assignee: Matthias Boehm
>             Fix For: SystemML 0.15
>
>
> 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.
> {code}
>  # 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
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)