Repository: incubator-systemml Updated Branches: refs/heads/master 43f6f3f44 -> 7f6b2ed59
[SYSTEMML-331] By default MLContext's reset doesnot clean up config Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/7f6b2ed5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/7f6b2ed5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/7f6b2ed5 Branch: refs/heads/master Commit: 7f6b2ed593e478b4462b2fcc9fc3e59d96918b10 Parents: 43f6f3f Author: Niketan Pansare <[email protected]> Authored: Sat Jan 16 08:36:19 2016 -0800 Committer: Niketan Pansare <[email protected]> Committed: Sat Jan 16 08:36:19 2016 -0800 ---------------------------------------------------------------------- src/main/java/org/apache/sysml/api/MLContext.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/7f6b2ed5/src/main/java/org/apache/sysml/api/MLContext.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/sysml/api/MLContext.java b/src/main/java/org/apache/sysml/api/MLContext.java index 154c266..0d75597 100644 --- a/src/main/java/org/apache/sysml/api/MLContext.java +++ b/src/main/java/org/apache/sysml/api/MLContext.java @@ -900,12 +900,14 @@ public class MLContext { /** * Call this method if you want to clear any RDDs set via registerInput, registerOutput. * This is required if ml.execute(..) has been called earlier and you want to call a new DML script. + * Note: By default this doesnot clean up configuration set using setConfig method. + * To clean the configuration as along with registered input/outputs, please use reset(true); * @throws DMLRuntimeException */ public void reset() throws DMLRuntimeException { - reset(true); + reset(false); } public void reset(boolean cleanupConfig)
