Skip to content

Commit 8acb1e5

Browse files
committed
Upgrade Dsl.scala, and test eager execution in nested function calls
1 parent 643008a commit 8acb1e5

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

plugins-CumulativeFloatLayers/build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ libraryDependencies += "com.thoughtworks.each" %% "each" % "3.3.1" % Test
1111

1212
scalacOptions += "-Ypartial-unification"
1313

14-
addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-bangnotation" % "1.0.0-RC9")
14+
addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-bangnotation" % "1.0.0-RC10")
1515

16-
addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-reseteverywhere" % "1.0.0-RC9")
16+
addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-reseteverywhere" % "1.0.0-RC10")

plugins-CumulativeFloatLayers/src/test/scala/com/thoughtworks/deeplearning/plugins/CumulativeFloatLayersSpec.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,8 @@ final class CumulativeFloatLayersSpec
390390
val weight = hyperparameters.FloatWeight(1.0f)
391391

392392
def myNetwork(input: Float): hyperparameters.FloatLayer = {
393-
// FIXME: inlining !-notation does not compile due to https://github.com/ThoughtWorksInc/Dsl.scala/issues/119
394-
// 6.7f + !(input + weight) + weight + 5.5f
395-
396-
val f = !(input + weight)
397-
6.7f + f + weight + 5.5f
398-
}: @com.thoughtworks.dsl.Dsl.reset
393+
6.7f + !(input + weight) + weight + 5.5f
394+
}
399395

400396
def train(inputData: Float): Future[Float] = {
401397
myNetwork(inputData).train

plugins-EagerExecution/build.sbt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
libraryDependencies += "com.thoughtworks.dsl" %% "dsl" % "1.0.0-RC9"
1+
libraryDependencies += "com.thoughtworks.dsl" %% "dsl" % "1.0.0-RC10"
22

3-
libraryDependencies += "com.thoughtworks.dsl" %% "domains-scalaz" % "1.0.0-RC9" % Test
3+
libraryDependencies += "com.thoughtworks.dsl" %% "domains-scalaz" % "1.0.0-RC10" % Test
44

5-
addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-bangnotation" % "1.0.0-RC9")
5+
addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-bangnotation" % "1.0.0-RC10")
66

7-
addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-reseteverywhere" % "1.0.0-RC9")
7+
addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-reseteverywhere" % "1.0.0-RC10")
88

99
fork in Test := true
1010

plugins-Layers/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ libraryDependencies += "com.thoughtworks.feature" %% "implicitapply" % "2.3.0-M8
66

77
libraryDependencies += "com.thoughtworks.feature" %% "factory" % "2.3.0-M8"
88

9-
libraryDependencies += "com.thoughtworks.dsl" %% "dsl" % "1.0.0-RC9"
9+
libraryDependencies += "com.thoughtworks.dsl" %% "dsl" % "1.0.0-RC10"

0 commit comments

Comments
 (0)