From fd4e859dc2e66eba8ef82fd822f23f4eb975a531 Mon Sep 17 00:00:00 2001 From: Amit Agarwal Date: Thu, 2 Jul 2015 12:32:50 -0700 Subject: [PATCH] Fixed build break caused by BMitra's commit bc641e42243e --- Math/CNTKMathTest/CPUSparseMatrixUnitTests.cpp | 2 +- Math/CNTKMathTest/GPUSparseMatrixUnitTests.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Math/CNTKMathTest/CPUSparseMatrixUnitTests.cpp b/Math/CNTKMathTest/CPUSparseMatrixUnitTests.cpp index e4ffd7339..2fd4b0a8a 100644 --- a/Math/CNTKMathTest/CPUSparseMatrixUnitTests.cpp +++ b/Math/CNTKMathTest/CPUSparseMatrixUnitTests.cpp @@ -38,7 +38,7 @@ namespace CNTKMathTest } DenseMatrix DM1 = DM0.ColumnSlice(start, numCols); - DenseMatrix DM2 = SM0.ColumnSlice(start, numCols); + DenseMatrix DM2 = SM0.ColumnSliceToDense(start, numCols); Assert::IsTrue(DM1.IsEqualTo(DM2, 0.0001)); } diff --git a/Math/CNTKMathTest/GPUSparseMatrixUnitTests.cpp b/Math/CNTKMathTest/GPUSparseMatrixUnitTests.cpp index 8d1bfcdbf..daa331fa0 100644 --- a/Math/CNTKMathTest/GPUSparseMatrixUnitTests.cpp +++ b/Math/CNTKMathTest/GPUSparseMatrixUnitTests.cpp @@ -410,11 +410,11 @@ namespace CNTKMathTest SM0.SetValue(M0); GPUMatrix M1 = M0.ColumnSlice(0, 2); - GPUMatrix SM1 = SM0.ColumnSlice(0, 2); + GPUMatrix SM1 = SM0.ColumnSliceToDense(0, 2); Assert::IsTrue(M1.IsEqualTo(SM1, 0.0001f)); GPUMatrix M2 = M0.ColumnSlice(1, 2); - GPUMatrix SM2 = SM0.ColumnSlice(1, 2); + GPUMatrix SM2 = SM0.ColumnSliceToDense(1, 2); Assert::IsTrue(M2.IsEqualTo(SM2, 0.0001f)); Assert::IsFalse(M1.IsEqualTo(SM2, 0.0001f));