Deron Eriksson created SYSTEMML-1148:
----------------------------------------

             Summary: 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


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)

Reply via email to