Skip to content

Commit

Permalink
Updated model.py so it runs setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hovstadius committed Oct 28, 2024
1 parent 60e0071 commit 47f41a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import torch
import collections
import tempfile
import subprocess

HELPER_MODULE = "numpyhelper"
helper = get_helper(HELPER_MODULE)
Expand Down Expand Up @@ -51,5 +52,10 @@ def init_seed(out_path):
model = compile_model()
save_parameters(model, out_path)

def run_setup():
"""Run setup.py before the main code execution."""
subprocess.run(["python3", "setup.py"], check=True)

if __name__ == "__main__":
run_setup()
init_seed('../seed.npz')

0 comments on commit 47f41a6

Please sign in to comment.