Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
SystemML 0.10
-
None
Description
In PyDML, the random.normal(...) built-in function is currently broken due to a namespace issue.
Example:
N = 4 D = 3 X = random.normal(N, D, 1) print(sum(X))
org.apache.sysml.parser.LanguageException: ERROR: null -- line 4, column 0 -- function normal is undefined in namespace random at org.apache.sysml.parser.StatementBlock.isMergeableFunctionCallBlock(StatementBlock.java:201) at org.apache.sysml.parser.StatementBlock.mergeFunctionCalls(StatementBlock.java:335) at org.apache.sysml.parser.DMLTranslator.liveVariableAnalysis(DMLTranslator.java:202) at org.apache.sysml.api.MLContext.executeUsingSimplifiedCompilationChain(MLContext.java:1354) at org.apache.sysml.api.MLContext.compileAndExecuteScript(MLContext.java:1257) at org.apache.sysml.api.MLContext.executeScript(MLContext.java:1195) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:231) at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:381) at py4j.Gateway.invoke(Gateway.java:259) at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:133) at py4j.commands.CallCommand.execute(CallCommand.java:79) at py4j.GatewayConnection.run(GatewayConnection.java:209) at java.lang.Thread.run(Thread.java:745)
Attachments
Issue Links
- relates to
-
SYSTEMDS-590 Improve Namespace Handling for UDFs
- Closed
-
SYSTEMDS-587 Improvements Triggered By Deep Learning Work
- In Progress