We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c103a38 + 88aeaea commit 72957b5Copy full SHA for 72957b5
DeepLearning/src/main/scala/com/thoughtworks/deeplearning/DeepLearning.scala
@@ -62,7 +62,7 @@ trait DeepLearning[Differentiable] extends SimulacrumIssue82WorkAround[Different
62
63
final def train(differentiable: Differentiable)(implicit monoid: MultiplicativeMonoid[Delta]): Future[Data] = {
64
val doData = forward(differentiable).flatMap[Data] { tape =>
65
- Do.garbageCollected(tape.backward(Do.now(monoid.one))).map { loss =>
+ Do.garbageCollected(tape.backward(Do.now(monoid.one))).intransitiveMap { _: Unit =>
66
tape.data
67
}
68
0 commit comments