Skip to content

Commit

Permalink
Merge branch 'master' of github.com:botkop/scorch
Browse files Browse the repository at this point in the history
  • Loading branch information
koen-dejonghe committed Dec 27, 2018
2 parents 90129ce + 75cb57a commit f7100df
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"What I cannot create, I do not understand." - Richard Feynman.

Scorch
======
Scorch is a deep learning framework in Scala inspired by PyTorch.
Expand Down
3 changes: 3 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
resolvers +=
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"

import Dependencies._

lazy val root = (project in file(".")).settings(
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import sbt._

object Dependencies {
lazy val scalaTest = "org.scalatest" %% "scalatest" % "3.0.3"
lazy val numsca = "be.botkop" %% "numsca" % "0.1.4"
lazy val numsca = "be.botkop" %% "numsca" % "0.1.5-SNAPSHOT"
}
1 change: 0 additions & 1 deletion src/main/scala/scorch/nn/cnn/MaxPool2d.scala
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ x.backward(Variable(dx))
val upd = (window == out(n, c, h, w)) * dOut(n, c, h, w)
dx(n, c, h1 :> h2, w1 :> w2) := upd
}

x.backward(Variable(dx))
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/test/scala/scorch/nn/cnn/Conv2dSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ class Conv2dSpec extends FlatSpec with Matchers {
def fb(a: Variable) =
Conv2d.Im2colConv2dFunction(x, w, a, pad, stride).forward()

oneOpGradientCheck(fx, x)
oneOpGradientCheck(fw, w.copy())
oneOpGradientCheck(fb, b.copy())
oneOpGradientCheck(fx, x, 3e-8)
oneOpGradientCheck(fw, w.copy(), 3e-8)
oneOpGradientCheck(fb, b.copy(), 3e-8)
}

}

0 comments on commit f7100df

Please sign in to comment.