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(router-memory): compare the page against the laya in this checkout

Aashishb013917ed797
diff --git a/tests/test_router_memory.py b/tests/test_router_memory.py
index 866b30f4..b52e5e88 100644
--- a/tests/test_router_memory.py
+++ b/tests/test_router_memory.py
@@ -9,9 +9,14 @@ loads nothing, so none of this needs weights.
"""
import ast
import re
+import sys
import unittest
from pathlib import Path
+# The page under test lives in this checkout, so the library it is compared against has to come
+# from here too: an installed `laya` would let the page and a stale default agree.
+sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
+
from laya.router import Router