Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

test(go): move the localgraphs helper with the test that uses it

Adeshina Lasisi749254bdc6d1
diff --git a/laya-go/onnx/localgraphs_test.go b/laya-go/onnx/localgraphs_test.go
index e00f9594..b3e4711b 100644
--- a/laya-go/onnx/localgraphs_test.go
+++ b/laya-go/onnx/localgraphs_test.go
@@ -5,6 +5,7 @@ package onnx
import (
"context"
"errors"
+ "path/filepath"
"strings"
"testing"
@@ -41,3 +42,8 @@ func TestOtherGraphs(t *testing.T) {
}
legacy.Close()
}
+
+// sibling is another export beside the main one: <exports>/<name>/laya.onnx.
+func (p paths) sibling(name string) string {
+ return filepath.Join(filepath.Dir(filepath.Dir(p.graph)), name, "laya.onnx")
+}
diff --git a/laya-go/onnx/support_test.go b/laya-go/onnx/support_test.go
index 238f162e..02e4425d 100644
--- a/laya-go/onnx/support_test.go
+++ b/laya-go/onnx/support_test.go
@@ -4,7 +4,6 @@ package onnx
import (
"os"
- "path/filepath"
"sync"
"testing"
@@ -25,11 +24,6 @@ func need(t testing.TB) paths {
return p
}
-// sibling is another export beside the main one: <exports>/<name>/laya.onnx.
-func (p paths) sibling(name string) string {
- return filepath.Join(filepath.Dir(filepath.Dir(p.graph)), name, "laya.onnx")
-}
-
// The graph is 1.29 GB, so tests that are not about lifecycle share one session. Lifecycle tests
// call closeShared first, so they start with no runtime loaded.
var shared struct {