Skip to content

Commit

Permalink
print(f"initializer {k}")
Browse files Browse the repository at this point in the history
Signed-off-by: jcwchen <[email protected]>
  • Loading branch information
jcwchen committed Jul 24, 2023
1 parent c5178b0 commit 9dafea5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions workflow_scripts/run_mlagility.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def main():
print(f"initializer: {mlagility_model.graph.initializer == original_model.graph.initializer}")
for k in range(len(mlagility_model.graph.initializer)):
if k < len(original_model.graph.initializer) and mlagility_model.graph.initializer[k] != original_model.graph.initializer[k]:
print(f"initializer {k}: {mlagility_model.graph.initializer[k]}")
print(f"but: {original_model.graph.initializer[k]}")
print(f"initializer {k}")
if mlagility_model != original_model:
raise Exception(f"Model {final_model_path} from mlagility is not the same as the original one.")
print(f"Successfully checked {model_zoo_dir} by mlagility.")
Expand Down

0 comments on commit 9dafea5

Please sign in to comment.