systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Boehm (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYSTEMML-2440) Got zero when casting an element of list
Date Thu, 19 Jul 2018 03:17:00 GMT

    [ https://issues.apache.org/jira/browse/SYSTEMML-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16548732#comment-16548732
] 

Matthias Boehm commented on SYSTEMML-2440:
------------------------------------------

Thanks for catching this [~Guobao] - I was able to reproduce it. There are two overlapping
issue here: wrong size propagation of list indexing during parsing (SYSTEMML-2455) and wrong
double to integer casts resulting in 0 (issue described here). I'll push the fixes soon.

> Got zero when casting an element of list
> ----------------------------------------
>
>                 Key: SYSTEMML-2440
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-2440
>             Project: SystemML
>          Issue Type: Bug
>            Reporter: LI Guobao
>            Priority: Major
>
> When running paramserv experiments, try to use get the element in a list in the function.
I got zero value.
> {code:java}
> stride = as.integer(as.scalar(hyperparams["stride"]))
> pad = as.integer(as.scalar(hyperparams["pad"]))
> lambda = as.double(as.scalar(hyperparams["lambda"])){code}
> {code:java}
> Caused by: java.lang.RuntimeException: Incorrect parameters: height=0 filter_height=0
stride=0 pad=0 at org.apache.sysml.runtime.util.DnnUtils.getP(DnnUtils.java:43) at org.apache.sysml.runtime.instructions.cp.DnnCPInstruction.processInstruction(DnnCPInstruction.java:457)
at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:252)
... 12 more
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message