Skip to content

Commit 14f6718

Browse files
Merge pull request #247 from scala-steward/update/scalafmt-core-3.0.7
Update scalafmt-core to 3.0.7
2 parents 2888d76 + 66eef34 commit 14f6718

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
align.preset = "more"
22
maxColumn = 100
3-
version=3.0.6
3+
version=3.0.7
44
runner.dialect = scala3
55
indent.main = 3

backends/.js/src/main/scala/ONNXJSOperatorBackend.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ trait ONNXJSOperatorBackend {
1919
implicit val ec: scala.concurrent.ExecutionContext = scala.concurrent.ExecutionContext.global
2020
def test() = {
2121

22-
val session = InferenceSession.create("relu.onnx")
22+
val session = InferenceSession.create("relu.onnx")
2323
val dataTypes = new FloatType {}
2424

25-
/*
25+
/*
2626
val inputs = Array(
2727
new Tensor(
2828
"float32",
@@ -32,10 +32,10 @@ trait ONNXJSOperatorBackend {
3232
scala.scalajs.js.Array(3.0, 4.0, 5.0)
3333
)
3434
)
35-
*/
36-
//println("before run")
37-
//val res = session.run(scala.scalajs.js.Array(inputs: _*))
38-
//println("after run")
39-
//res
35+
*/
36+
//println("before run")
37+
//val res = session.run(scala.scalajs.js.Array(inputs: _*))
38+
//println("after run")
39+
//res
4040
}
4141
}

build.sbt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ lazy val common = (crossProject(JSPlatform, JVMPlatform)
2525
name := "onnx-scala-common",
2626
crossScalaVersions := Seq(
2727
dottyVersion
28-
),
28+
)
2929
)
3030

3131
lazy val proto = (crossProject(JSPlatform, JVMPlatform)
@@ -61,10 +61,11 @@ lazy val backends = (crossProject(JVMPlatform, JSPlatform)
6161
//TODO: move to utest
6262
libraryDependencies += ("org.scalatest" %% "scalatest" % scalaTestVersion) % Test
6363
)
64-
.jsSettings(scalaJSUseMainModuleInitializer := true, //, //Testing
65-
npmDependencies in Compile += "onnxruntime-web" -> "1.9.0")
66-
.jsConfigure { project => project.enablePlugins(ScalablyTypedConverterPlugin)}
67-
64+
.jsSettings(
65+
scalaJSUseMainModuleInitializer := true, //, //Testing
66+
npmDependencies in Compile += "onnxruntime-web" -> "1.9.0"
67+
)
68+
.jsConfigure { project => project.enablePlugins(ScalablyTypedConverterPlugin) }
6869

6970
lazy val core = (crossProject(JSPlatform, JVMPlatform)
7071
.crossType(CrossType.Pure) in file("core"))

0 commit comments

Comments
 (0)