You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/04/06 03:20:23 UTC
[GitHub] yzhliu closed pull request #10428: [MXNET-166] add unknown dtype to resolve segfaults when inputType is -1 and type ���
yzhliu closed pull request #10428: [MXNET-166] add unknown dtype to resolve segfaults when inputType is -1 and type …
URL: https://github.com/apache/incubator-mxnet/pull/10428
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/scala-package/core/src/main/scala/ml/dmlc/mxnet/DType.scala b/scala-package/core/src/main/scala/ml/dmlc/mxnet/DType.scala
index bfe757d5cfa..4ba101b0907 100644
--- a/scala-package/core/src/main/scala/ml/dmlc/mxnet/DType.scala
+++ b/scala-package/core/src/main/scala/ml/dmlc/mxnet/DType.scala
@@ -24,6 +24,7 @@ object DType extends Enumeration {
val Float16 = Value(2, "float16")
val UInt8 = Value(3, "uint8")
val Int32 = Value(4, "int32")
+ val Unknown = Value(-1, "unknown")
private[mxnet] def numOfBytes(dtype: DType): Int = {
dtype match {
case DType.UInt8 => 1
@@ -31,6 +32,7 @@ object DType extends Enumeration {
case DType.Float16 => 2
case DType.Float32 => 4
case DType.Float64 => 8
+ case DType.Unknown => 0
}
}
}
diff --git a/scala-package/infer/src/main/scala/ml/dmlc/mxnet/infer/MXNetHandler.scala b/scala-package/infer/src/main/scala/ml/dmlc/mxnet/infer/MXNetHandler.scala
index 47ee15ce27c..a58e2c95b97 100644
--- a/scala-package/infer/src/main/scala/ml/dmlc/mxnet/infer/MXNetHandler.scala
+++ b/scala-package/infer/src/main/scala/ml/dmlc/mxnet/infer/MXNetHandler.scala
@@ -70,7 +70,7 @@ private[infer] class MXNetThreadPoolHandler(numThreads: Int = 1)
val task = new Callable[T] {
override def call(): T = {
- logger.info("threadId: %s".format(Thread.currentThread().getId()))
+ logger.debug("threadId: %s".format(Thread.currentThread().getId()))
f
}
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services