[ https://issues.apache.org/jira/browse/SYSTEMML-1148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deron Eriksson resolved SYSTEMML-1148. -------------------------------------- Resolution: Fixed Fix Version/s: SystemML 1.0 Fixed by [PR314|https://github.com/apache/incubator-systemml/pull/314]. > Explicitly set value types for MLContext scalar inputs > ------------------------------------------------------ > > Key: SYSTEMML-1148 > URL: https://issues.apache.org/jira/browse/SYSTEMML-1148 > Project: SystemML > Issue Type: Bug > Components: APIs > Reporter: Deron Eriksson > Assignee: Deron Eriksson > Fix For: SystemML 1.0 > > > The following code (print the 'not' of a boolean input value through > MLContext) currently throws an error: > {code} > @Test > public void testDisplayBooleanNotDML() { > System.out.println("MLContextTest - display boolean 'not' DML"); > String s = "print(!b);"; > Script script = dml(s).in("b", true); > ml.execute(script); > } > {code} > This gives the following error: > {code} > Caused by: org.apache.sysml.lops.LopsException: ERROR: line 2, column 6 -- > Problem generating simple inst - > CP°!°b·SCALAR·DOUBLE·false°_Var1·SCALAR·BOOLEAN > {code} > This can most likely be fixed by explicitly setting the value_type for scalar > input values through the MLContext API in the Script class. -- This message was sent by Atlassian JIRA (v6.3.4#6332)