Skip to content

Commit 6010b5f

Browse files
authored
[BUG FIX] Fix the issue that paddle_lite_opt can not transform quantified model (#6042)
1 parent 3032a7d commit 6010b5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lite/api/python/bin/paddle_lite_opt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def main():
7575
if args.optimize_out is not None:
7676
a.set_optimize_out(args.optimize_out)
7777
if args.valid_targets is not None:
78-
if args.enable_fp16 is not None:
78+
if args.enable_fp16 == "true":
7979
a.set_valid_places(args.valid_targets, True)
8080
else:
8181
a.set_valid_places(args.valid_targets, False)

0 commit comments

Comments
 (0)