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

Commit

Permalink
fix the bug on Scala Sparse (#15500)
Browse files Browse the repository at this point in the history
* fix the bug on sparse tensor

* update jenkins
  • Loading branch information
lanking520 authored Jul 10, 2019
1 parent 7d4d1bc commit 6191dd7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
16 changes: 8 additions & 8 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -952,13 +952,6 @@ unittest_ubuntu_python3_quantization_gpu() {
nosetests-3.4 $NOSE_COVERAGE_ARGUMENTS $NOSE_TIMER_ARGUMENTS --with-xunit --xunit-file nosetests_quantization_gpu.xml --verbose tests/python/quantization_gpu
}

unittest_ubuntu_cpu_scala() {
set -ex
scala_prepare
cd scala-package
mvn -B integration-test
}

unittest_centos7_cpu_scala() {
set -ex
cd /work/mxnet
Expand Down Expand Up @@ -1156,12 +1149,19 @@ integrationtest_ubuntu_cpu_dist_kvstore() {
../../tools/launch.py -n 3 --launcher local python test_server_profiling.py
}

integrationtest_ubuntu_cpu_scala() {
set -ex
scala_prepare
cd scala-package
mvn -B verify -DskipTests=false
}

integrationtest_ubuntu_gpu_scala() {
set -ex
scala_prepare
cd scala-package
export SCALA_TEST_ON_GPU=1
mvn -B integration-test -DskipTests=false
mvn -B verify -DskipTests=false
}

integrationtest_ubuntu_gpu_dist_kvstore() {
Expand Down
4 changes: 2 additions & 2 deletions ci/jenkins/Jenkins_steps.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ def test_unix_scala_cpu() {
ws('workspace/ut-scala-cpu') {
timeout(time: max_time, unit: 'MINUTES') {
utils.unpack_and_init('cpu', mx_lib, true)
utils.docker_run('ubuntu_cpu', 'unittest_ubuntu_cpu_scala', false)
utils.docker_run('ubuntu_cpu', 'integrationtest_ubuntu_cpu_scala', false)
utils.publish_test_coverage()
}
}
Expand All @@ -955,7 +955,7 @@ def test_unix_scala_mkldnn_cpu(){
ws('workspace/ut-scala-mkldnn-cpu') {
timeout(time: max_time, unit: 'MINUTES') {
utils.unpack_and_init('mkldnn_cpu', mx_mkldnn_lib, true)
utils.docker_run('ubuntu_cpu', 'unittest_ubuntu_cpu_scala', false)
utils.docker_run('ubuntu_cpu', 'integrationtest_ubuntu_cpu_scala', false)
utils.publish_test_coverage()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,9 @@ class NDArray private[mxnet](private[mxnet] val handle: NDArrayHandle,
DType(mxDtype.value)
}

val sparseFormat: SparseFormat = {
// This is a optimization on the SparseFormat checking
// TODO: In some cases, the checking on Sparse is invalid (-1)
lazy val sparseFormat: SparseFormat = {
val mxSF = new RefInt
checkCall(_LIB.mxNDArrayGetStorageType(handle, mxSF))
SparseFormat(mxSF.value)
Expand Down

0 comments on commit 6191dd7

Please sign in to comment.