Skip to content

Commit

Permalink
fix SRN algorithm infer error (#13851)
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatV authored Sep 11, 2024
1 parent 4832bb6 commit 1c8233d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/infer/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ def create_predictor(args, mode, logger):
config.disable_glog_info()
config.delete_pass("conv_transpose_eltwiseadd_bn_fuse_pass")
config.delete_pass("matmul_transpose_reshape_fuse_pass")
if mode == "rec" and args.rec_algorithm == "SRN":
config.delete_pass("gpu_cpu_map_matmul_v2_to_matmul_pass")
if mode == "re":
config.delete_pass("simplify_with_basic_ops_pass")
if mode == "table":
Expand Down

0 comments on commit 1c8233d

Please # to comment.