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));