Преглед на файлове

shutdown dht in any casy

justheuristic преди 5 години
родител
ревизия
13234a2db1
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      tests/test_moe.py

+ 5 - 0
tests/test_moe.py

@@ -66,3 +66,8 @@ def test_compute_expert_scores():
                     assert torch.allclose(logits[b, e], gx[b, ii[b][e]] + gy[b, jj[b][e]]), "compute_expert_scores returned incorrect score"
         finally:
             dht.shutdown()
+
+
+if __name__ == '__main__':
+    test_remote_module_call()
+    test_compute_expert_scores()