Skip to content

Commit bdfc5b0

Browse files
committed
[OPS] Bug fix for optimizers.
1 parent 022ab37 commit bdfc5b0

File tree

1 file changed

+1
-1
lines changed
  • modules/api/src/main/scala/org/platanios/tensorflow/api/ops/training/optimizers

1 file changed

+1
-1
lines changed

modules/api/src/main/scala/org/platanios/tensorflow/api/ops/training/optimizers/Optimizer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ trait Optimizer {
182182
// Create the slots needed by the variables.
183183
Op.initializationScope {
184184
VariableScope.scope(name) {
185-
createSlots(variables)
185+
createSlots(gradientsAndVariables.map(_._2))
186186
}
187187
}
188188

0 commit comments

Comments
 (0)