Skip to content

Commit

Permalink
[tuner] Temporarily disable candidate pickling (#583)
Browse files Browse the repository at this point in the history
`ir.*` types don't support pickling. Disabling this for now until we get
a proper fix.
  • Loading branch information
kuhar authored Nov 21, 2024
1 parent 5348a11 commit 06599e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tuner/tuner/candidate_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,9 @@ def tune(
with open(path.join(output, f"{i+1}_config.mlir"), "w") as f:
f.write(tf_mlir.embeddable)

with open(path.join(output, "configs.pkl"), "wb") as file:
pickle.dump(configs, file)
# TODO: Fix pickling for ir types.
# with open(path.join(output, "configs.pkl"), "wb") as file:
# pickle.dump(configs, file)

tune_logger.info(f"Generated {len(configs)} candidates")
tune_logger.info(f"Configurations .pkl is stored in {output}/configs.pkl")
Expand Down

0 comments on commit 06599e9

Please sign in to comment.