Add check for hash.npy in the models folder.

This commit is contained in:
Prashant Kumar
2022-08-01 18:00:58 +05:30
parent d556c0d6ef
commit 315ec72984

View File

@@ -59,6 +59,7 @@ def check_dir_exists(model_name, frontend="torch", dynamic=""):
and os.path.isfile(os.path.join(model_dir, "function_name.npy"))
and os.path.isfile(os.path.join(model_dir, "inputs.npz"))
and os.path.isfile(os.path.join(model_dir, "golden_out.npz"))
and os.path.isfile(os.path.join(model_dir, "hash.npy"))
):
print(
f"""The models are present in the {WORKDIR}. If you want a fresh