Skip to content
Permalink
Browse files

#5251 ComputationGraph.addListeners fix

  • Loading branch information...
AlexDBlack committed May 21, 2018
1 parent 90a7036 commit 80da3416327bb48f8a9b36e1392a5f7f32448d52
@@ -2606,6 +2606,10 @@ public void addListeners(TrainingListener... listeners) {
if (this.trainingListeners == null) {
setListeners(listeners);
return;
} else {
this.trainingListeners = new ArrayList<>(this.trainingListeners); //To avoid immutable list issues
Collections.addAll(this.trainingListeners, listeners);
setListeners(listeners);
}

if (solver != null) {

0 comments on commit 80da341

Please sign in to comment.
You can’t perform that action at this time.