From 3446200c63bed642b04e6bc1bac0f4583be74637 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Sat, 21 May 2022 18:12:21 +0200 Subject: [PATCH] Update parallel --- src/parallel/app.py | 2 +- src/parallel/client.py | 2 +- src/parallel/structures.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parallel/app.py b/src/parallel/app.py index 0d347d1..4f82951 100644 --- a/src/parallel/app.py +++ b/src/parallel/app.py @@ -27,7 +27,7 @@ os.makedirs(CACHE, exist_ok=True) # On crée un réseau aléatoire si il n'existe pas encore if not os.path.isfile(RESEAU): if not os.path.isfile("out/main"): - subprocess.call(["make.sh", "main"]) + subprocess.call(["./make.sh", "main"]) subprocess.call ([ "out/main", "train", diff --git a/src/parallel/client.py b/src/parallel/client.py index e7ed22b..1401ef3 100644 --- a/src/parallel/client.py +++ b/src/parallel/client.py @@ -108,7 +108,7 @@ def train_shared(dataset, start, nb_elem, epochs=1, out=DELTA): # On compile out/main si il n'existe pas encore if not os.path.isfile("out/main"): - subprocess.call(["make.sh", "main"]) + subprocess.call(["./make.sh", "main"]) # Entraînement du réseau subprocess.call( diff --git a/src/parallel/structures.py b/src/parallel/structures.py index a19083f..d2913b4 100644 --- a/src/parallel/structures.py +++ b/src/parallel/structures.py @@ -90,7 +90,7 @@ class Training: Teste les performances du réseau avant le batch suivant """ if not os.path.isfile("out/main"): - subprocess.call(["make.sh", "main"]) + subprocess.call(["./make.sh", "main"]) subprocess.call( [ @@ -115,7 +115,7 @@ class Training: file.write("") if not os.path.isfile("out/main"): - subprocess.call(["make.sh", "utils"]) + subprocess.call(["./make.sh", "utils"]) subprocess.call ([ "out/utils", "patch-network",