Repository: systemml Updated Branches: refs/heads/master 7e11deaa8 -> a97a144dc
[MINOR] Fix long to int truncation of dims in spark reshape operations Project: http://git-wip-us.apache.org/repos/asf/systemml/repo Commit: http://git-wip-us.apache.org/repos/asf/systemml/commit/a97a144d Tree: http://git-wip-us.apache.org/repos/asf/systemml/tree/a97a144d Diff: http://git-wip-us.apache.org/repos/asf/systemml/diff/a97a144d Branch: refs/heads/master Commit: a97a144dcebf7e5233dcd09bd8b9848931359875 Parents: 7e11dea Author: Matthias Boehm <[email protected]> Authored: Fri Feb 9 13:08:40 2018 -0800 Committer: Matthias Boehm <[email protected]> Committed: Fri Feb 9 13:08:40 2018 -0800 ---------------------------------------------------------------------- .../runtime/instructions/spark/MatrixReshapeSPInstruction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/systemml/blob/a97a144d/src/main/java/org/apache/sysml/runtime/instructions/spark/MatrixReshapeSPInstruction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/sysml/runtime/instructions/spark/MatrixReshapeSPInstruction.java b/src/main/java/org/apache/sysml/runtime/instructions/spark/MatrixReshapeSPInstruction.java index a0818e5..31666c2 100644 --- a/src/main/java/org/apache/sysml/runtime/instructions/spark/MatrixReshapeSPInstruction.java +++ b/src/main/java/org/apache/sysml/runtime/instructions/spark/MatrixReshapeSPInstruction.java @@ -82,8 +82,8 @@ public class MatrixReshapeSPInstruction extends UnarySPInstruction { SparkExecutionContext sec = (SparkExecutionContext)ec; //get parameters - int rows = (int)ec.getScalarInput(_opRows.getName(), _opRows.getValueType(), _opRows.isLiteral()).getLongValue(); //save cast - int cols = (int)ec.getScalarInput(_opCols.getName(), _opCols.getValueType(), _opCols.isLiteral()).getLongValue(); //save cast + long rows = ec.getScalarInput(_opRows.getName(), _opRows.getValueType(), _opRows.isLiteral()).getLongValue(); //save cast + long cols = ec.getScalarInput(_opCols.getName(), _opCols.getValueType(), _opCols.isLiteral()).getLongValue(); //save cast boolean byRow = ec.getScalarInput(_opByRow.getName(), ValueType.BOOLEAN, _opByRow.isLiteral()).getBooleanValue(); //get inputs
