Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Don't compile khatri_rao tests if we don't have LAPACK
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy authored and Pedro Larroy committed Dec 16, 2018
1 parent aab8f43 commit ad90cc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/cpp/operator/krprod_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ TEST(row_wise_kronecker, FourInputMatrices) {
FreeSpace(&result);
}


#if MXNET_USE_LAPACK == 1
TEST(khatri_rao, OneInputMatrix) {
// Input matrices of shape (2, 4) which is also the expected result
DType mat[8] {1, 2, 3, 4, 5, 6, 7, 8};
Expand Down Expand Up @@ -444,5 +446,6 @@ TEST(inv_khatri_rao, ThreeInputMatricesTranposed) {
FreeSpace(&kr_t);
FreeSpace(&actual_dot);
}
#endif // MXNET_USE_LAPACK == 1
} // namespace op
} // namespace mxnet

0 comments on commit ad90cc4

Please sign in to comment.