Skip to content

Commit

Permalink
Add tensorboard support (intel-analytics#2667)
Browse files Browse the repository at this point in the history
* add tensorboard support

* fix style

* fix style2

* fix test
  • Loading branch information
jenniew authored Aug 11, 2020
1 parent 0bf5569 commit d7a7e37
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions keras/models/Topology.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,21 @@ private[zoo] class InternalDistriOptimizer[T: ClassTag] (
this
}

def getTrainSummary(tag: String): Array[(Long, Float, Double)] = {
if (this.trainSummary isDefined) {
this.trainSummary.get.readScalar(tag)
} else {
null
}
}

def getValidationSummary(tag: String): Array[(Long, Float, Double)] = {
if (this.validationSummary isDefined) {
this.validationSummary.get.readScalar(tag)
} else {
null
}
}

override def train(
trainSet: FeatureSet[MiniBatch[T]],
Expand Down

0 comments on commit d7a7e37

Please sign in to comment.