Skip to content

Commit

Permalink
Change default value for ONEFLOW_MLIR_PREFER_NHWC (#10410)
Browse files Browse the repository at this point in the history
  • Loading branch information
levi131 authored Jan 20, 2024
1 parent 2e331e1 commit 9afbc9b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ def __init__(self, model):
os.environ.setdefault("ONEFLOW_MLIR_FUSE_FORWARD_OPS", "1")
os.environ.setdefault("ONEFLOW_MLIR_FUSE_OPS_WITH_BACKWARD_IMPL", "1")
os.environ.setdefault("ONEFLOW_MLIR_GROUP_MATMUL", "1")
os.environ.setdefault("ONEFLOW_MLIR_PREFER_NHWC", "1")
# TODO(lml): enable ONEFLOW_MLIR_PREFER_NHWC when related bug fix.
os.environ.setdefault("ONEFLOW_MLIR_PREFER_NHWC", "0")
os.environ.setdefault("ONEFLOW_KERNEL_ENABLE_FUSED_CONV_BIAS", "1")
os.environ.setdefault("ONEFLOW_KERNEL_ENABLE_FUSED_LINEAR", "1")
os.environ.setdefault(
Expand Down

0 comments on commit 9afbc9b

Please sign in to comment.