CodingCat commented on a change in pull request #9678: [First cut] Scala
Inference APIs
URL: https://github.com/apache/incubator-mxnet/pull/9678#discussion_r166179638
##########
File path: scala-package/core/src/main/scala/ml/dmlc/mxnet/IO.scala
##########
@@ -230,6 +230,8 @@ abstract class DataPack() extends Iterable[DataBatch] {
// Named data desc description contains name, shape, type and other extended
attributes.
case class DataDesc(name: String, shape: Shape,
dtype: DType = Base.MX_REAL_TYPE, layout: String = "NCHW")
{
+ require(shape.length == layout.length, "number of dimensions in shape should
match the layout")
Review comment:
would you show the current length of both in the error msg?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services