From b6dd56217d44c8d0495d848ab5c0e3b9548f5a7c Mon Sep 17 00:00:00 2001 From: Anirudh Acharya Date: Wed, 1 May 2019 19:57:44 +0000 Subject: [PATCH 1/4] stype fix --- src/operator/tensor/matrix_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operator/tensor/matrix_op.cc b/src/operator/tensor/matrix_op.cc index b80c9a54510f..9e6bead7229c 100644 --- a/src/operator/tensor/matrix_op.cc +++ b/src/operator/tensor/matrix_op.cc @@ -769,7 +769,7 @@ parameter values: if (!dispatched && param.a_min <= 0.0 && param.a_max >= 0.0) { const int this_stype = (*in_attrs)[0]; if (this_stype != kUndefinedStorage) { - dispatched = storage_type_assign(&(*out_attrs)[0], kRowSparseStorage, + dispatched = storage_type_assign(&(*out_attrs)[0], mxnet::NDArrayStorageType(this_stype), dispatch_mode, DispatchMode::kFComputeEx); } } From 478eba866c4c2a3e283bfd564f3c3ae70668581f Mon Sep 17 00:00:00 2001 From: Anirudh Acharya Date: Thu, 2 May 2019 00:14:45 +0000 Subject: [PATCH 2/4] ut --- tests/python/unittest/test_sparse_ndarray.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/python/unittest/test_sparse_ndarray.py b/tests/python/unittest/test_sparse_ndarray.py index 7600ea944e83..3b4c684e8696 100644 --- a/tests/python/unittest/test_sparse_ndarray.py +++ b/tests/python/unittest/test_sparse_ndarray.py @@ -915,6 +915,7 @@ def check_fluent_regular(stype, func, kwargs, shape=(5, 17), equal_nan=False): check_fluent_regular('csr', 'slice', {'begin': (2, 5), 'end': (4, 7)}, shape=(5, 17)) check_fluent_regular('row_sparse', 'clip', {'a_min': -0.25, 'a_max': 0.75}) + check_fluent_regular('csr', 'clip', {'a_min': -0.25, 'a_max': 0.75}) for func in ['sum', 'mean', 'norm']: check_fluent_regular('csr', func, {'axis': 0}) From ba6553d03955237e0e615f11747909e0f07718ae Mon Sep 17 00:00:00 2001 From: JackieWu Date: Sun, 5 May 2019 22:33:13 +0800 Subject: [PATCH 3/4] retrigger ci From 2d3d582c7245be3a114ff2bef817f52f15c5b54b Mon Sep 17 00:00:00 2001 From: JackieWu Date: Mon, 6 May 2019 19:04:41 +0800 Subject: [PATCH 4/4] Retrigger ci