Skip to content

Commit

Permalink
Fix Wrong labelSize at Sample.scala 411 (#2147) (#2149)
Browse files Browse the repository at this point in the history
"val labelSize = features.map(_.size())"   -> "val labelSize = labels.map(_.size())"
  • Loading branch information
qiuxin2012 authored Jan 3, 2018
1 parent 4d1058a commit eb5d1a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ private[bigdl] class TensorSample[T: ClassTag](
val features: Array[Tensor[T]],
val labels: Array[Tensor[T]]) extends Sample[T] {
val featureSize = features.map(_.size())
val labelSize = features.map(_.size())
val labelSize = labels.map(_.size())

def featureLength(index: Int): Int = {
features(0).size(1)
Expand Down

0 comments on commit eb5d1a1

Please sign in to comment.