From bc22a81925e3c33f5357b903eac428854deae35b Mon Sep 17 00:00:00 2001 From: powderluv Date: Tue, 8 Aug 2023 17:17:38 -0700 Subject: [PATCH] re-enable constant folding (#1739) Tested and works well. (modulo unrelated driver issue) --- apps/stable_diffusion/src/utils/stable_args.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/stable_diffusion/src/utils/stable_args.py b/apps/stable_diffusion/src/utils/stable_args.py index 202d9047..c9c336ff 100644 --- a/apps/stable_diffusion/src/utils/stable_args.py +++ b/apps/stable_diffusion/src/utils/stable_args.py @@ -521,7 +521,7 @@ p.add_argument( p.add_argument( "--iree_constant_folding", - default=False, + default=True, action=argparse.BooleanOptionalAction, help="Controls constant folding in iree-compile for all SD models.", )