瀏覽代碼

force cpu

justheuristic 5 年之前
父節點
當前提交
7bd5f3c826
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/test_moe.py

+ 1 - 1
tests/test_moe.py

@@ -44,7 +44,7 @@ def test_remote_module_call():
 
 
 def test_compute_expert_scores():
-    with background_server() as (server_addr, server_port, network_port):
+    with background_server(device='cpu') as (server_addr, server_port, network_port):
         dht = tesseract.TesseractNetwork(('localhost', network_port), port=tesseract.find_open_port(), start=True)
         moe = tesseract.client.moe.RemoteMixtureOfExperts(
             network=dht, in_features=1024, grid_size=[40], k_best=4, k_min=1, timeout_after_k_min=1,