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.
1 parent ceed3d1 commit 88aeaeaCopy full SHA for 88aeaea
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