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
8e697e34
"src/git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "f40aee9d2e69fab1262d4cb55ea4dc4863ddccdb"
Commit
8e697e34
authored
Jan 28, 2021
by
WenmuZhou
Browse files
add note
parent
b30add8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tools/export_model.py
tools/export_model.py
+4
-1
No files found.
tools/export_model.py
View file @
8e697e34
...
@@ -54,10 +54,13 @@ def main():
...
@@ -54,10 +54,13 @@ def main():
infer_shape
=
[
3
,
-
1
,
-
1
]
infer_shape
=
[
3
,
-
1
,
-
1
]
if
config
[
'Architecture'
][
'model_type'
]
==
"rec"
:
if
config
[
'Architecture'
][
'model_type'
]
==
"rec"
:
infer_shape
=
[
3
,
32
,
-
1
]
infer_shape
=
[
3
,
32
,
-
1
]
# for rec model, H must be 32
if
'Transform'
in
config
[
'Architecture'
]
and
config
[
'Architecture'
][
if
'Transform'
in
config
[
'Architecture'
]
and
config
[
'Architecture'
][
'Transform'
]
is
not
None
and
config
[
'Architecture'
][
'Transform'
]
is
not
None
and
config
[
'Architecture'
][
'Transform'
][
'name'
]
==
'TPS'
:
'Transform'
][
'name'
]
==
'TPS'
:
logger
.
info
(
'When there is tps in the network, variable length input is not supported, and the input size needs to be the same as during training'
)
infer_shape
[
-
1
]
=
100
infer_shape
[
-
1
]
=
100
model
=
to_static
(
model
=
to_static
(
...
...
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