Skip to content

Commit

Permalink
fix TimeDistributedCriterion() lack of parameter of dimension issue (i…
Browse files Browse the repository at this point in the history
  • Loading branch information
lingxiao1989 authored Oct 24, 2019
1 parent 2d989e4 commit a912191
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@ class PythonBigDL[T: ClassTag](implicit ev: TensorNumeric[T]) extends Serializab
}

def createTimeDistributedCriterion(critrn: TensorCriterion[T],
sizeAverage: Boolean = false): TimeDistributedCriterion[T] = {
TimeDistributedCriterion[T](critrn, sizeAverage)
sizeAverage: Boolean = false, dimension: Int = 2): TimeDistributedCriterion[T] = {
TimeDistributedCriterion[T](critrn, sizeAverage, dimension)
}

def createGRU(
Expand Down

0 comments on commit a912191

Please sign in to comment.