Skip to content

Commit

Permalink
enable vm runtime by default (#506)
Browse files Browse the repository at this point in the history
Co-authored-by: Xiaoyu Xu <[email protected]>
  • Loading branch information
hjchen2 and strint authored Jan 12, 2024
1 parent a385601 commit 85ace0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/onediff/infer_compiler/with_oneflow_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ def __init__(self, model):
self.config.enable_cudnn_conv_heuristic_search_algo(False)
self.config.allow_fuse_add_to_output(True)

os.environ["ONEFLOW_RUN_GRAPH_BY_VM"] = "1"
os.environ["ONEFLOW_GRAPH_DELAY_VARIABLE_OP_EXECUTION"] = "1"
os.environ["ONEFLOW_MLIR_CSE"] = "1"
os.environ["ONEFLOW_MLIR_ENABLE_INFERENCE_OPTIMIZATION"] = "1"
Expand Down

0 comments on commit 85ace0c

Please sign in to comment.