You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Matthias Boehm (JIRA)" <ji...@apache.org> on 2017/06/03 21:50:04 UTC
[jira] [Resolved] (SYSTEMML-1659) New rewrite eliminate unnecessary
aggregates
[ https://issues.apache.org/jira/browse/SYSTEMML-1659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Boehm resolved SYSTEMML-1659.
--------------------------------------
Resolution: Done
Assignee: Matthias Boehm
> 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 1.0
>
>
> 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.3.15#6346)