This is an automated email from the ASF dual-hosted git repository.
zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new c74a8e1 Make MXNetError in Scala Not Private (#11491)
c74a8e1 is described below
commit c74a8e10a5c8e6c76e176c8521967ee3ccd3bef4
Author: Lou <[email protected]>
AuthorDate: Fri Jun 29 13:36:32 2018 -0400
Make MXNetError in Scala Not Private (#11491)
`MXNetError` is thrown in the event of a CUDA error (e.g., `Check failed:
err == cudaSuccess ...`). While ideally we'd never encounter this, it happens
sometimes, and we'd like to program our scala code to take the appropriate
action (i.e., restart the process).
This PR proposes making the `MXNetError` class public, so that we can
`catch` it in our calling code.
---
scala-package/core/src/main/scala/org/apache/mxnet/Base.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scala-package/core/src/main/scala/org/apache/mxnet/Base.scala
b/scala-package/core/src/main/scala/org/apache/mxnet/Base.scala
index 58769b2..b2a53fd 100644
--- a/scala-package/core/src/main/scala/org/apache/mxnet/Base.scala
+++ b/scala-package/core/src/main/scala/org/apache/mxnet/Base.scala
@@ -152,4 +152,4 @@ private[mxnet] object Base {
}
}
-private[mxnet] class MXNetError(val err: String) extends Exception(err)
+class MXNetError(val err: String) extends Exception(err)