You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by ni...@apache.org on 2017/10/17 23:53:19 UTC

systemml git commit: [MINOR] [SYSTEMML-540] Reset the _cachedParams to avoid incorrect sizes

Repository: systemml
Updated Branches:
  refs/heads/master 3a7f38e58 -> 259814e6c


[MINOR] [SYSTEMML-540] Reset the _cachedParams to avoid incorrect sizes

Project: http://git-wip-us.apache.org/repos/asf/systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/systemml/commit/259814e6
Tree: http://git-wip-us.apache.org/repos/asf/systemml/tree/259814e6
Diff: http://git-wip-us.apache.org/repos/asf/systemml/diff/259814e6

Branch: refs/heads/master
Commit: 259814e6c00021c643c33867906d0c5d8dc4bc5e
Parents: 3a7f38e
Author: Niketan Pansare <np...@us.ibm.com>
Authored: Tue Oct 17 16:52:19 2017 -0700
Committer: Niketan Pansare <np...@us.ibm.com>
Committed: Tue Oct 17 16:52:19 2017 -0700

----------------------------------------------------------------------
 src/main/java/org/apache/sysml/hops/ConvolutionOp.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/systemml/blob/259814e6/src/main/java/org/apache/sysml/hops/ConvolutionOp.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/hops/ConvolutionOp.java b/src/main/java/org/apache/sysml/hops/ConvolutionOp.java
index e4ed32b..50a7ca3 100644
--- a/src/main/java/org/apache/sysml/hops/ConvolutionOp.java
+++ b/src/main/java/org/apache/sysml/hops/ConvolutionOp.java
@@ -639,6 +639,9 @@ public class ConvolutionOp extends Hop  implements MultiThreadedHop
 			return;
 		}
 		
+		// Reset the _cachedParams to avoid incorrect sizes
+		_cachedParams = new ConvolutionParameters(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, _maxNumThreads);
+		
 		switch(op) 
 		{
 			case MAX_POOLING: