[
https://issues.apache.org/jira/browse/SYSTEMML-1148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Glenn Weidner updated SYSTEMML-1148:
------------------------------------
Fix Version/s: (was: SystemML 1.0)
SystemML 0.12
> 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 0.12
>
>
> 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.15#6346)