Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
6e1cfb05
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "df167d87855f8b5e7bddc32ef3c3cd489027c7e1"
Commit
6e1cfb05
authored
Jun 22, 2021
by
MissPenguin
Browse files
fix cpu infer error for table structure
parent
3f92af45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tools/infer/utility.py
tools/infer/utility.py
+3
-2
No files found.
tools/infer/utility.py
View file @
6e1cfb05
...
...
@@ -331,10 +331,11 @@ def create_predictor(args, mode, logger):
config
.
disable_glog_info
()
config
.
delete_pass
(
"conv_transpose_eltwiseadd_bn_fuse_pass"
)
if
mode
==
'structure'
:
config
.
delete_pass
(
"fc_fuse_pass"
)
# not supported for table
config
.
switch_use_feed_fetch_ops
(
False
)
config
.
switch_ir_optim
(
True
)
if
mode
==
'structure'
:
config
.
switch_ir_optim
(
False
)
# create predictor
predictor
=
inference
.
create_predictor
(
config
)
input_names
=
predictor
.
get_input_names
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment