You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Deron Eriksson (JIRA)" <ji...@apache.org> on 2016/12/09 21:38:58 UTC

[jira] [Created] (SYSTEMML-1148) Explicitly set value types for MLContext scalar inputs

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)