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
af874033
Unverified
Commit
af874033
authored
Jul 23, 2020
by
shaohua.zhang
Committed by
GitHub
Jul 23, 2020
Browse files
fix the assignment of a var
parent
cd560324
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tools/program.py
tools/program.py
+4
-3
No files found.
tools/program.py
View file @
af874033
...
@@ -394,8 +394,9 @@ def preprocess():
...
@@ -394,8 +394,9 @@ def preprocess():
startup_program
=
fluid
.
Program
()
startup_program
=
fluid
.
Program
()
train_program
=
fluid
.
Program
()
train_program
=
fluid
.
Program
()
contain_det
=
False
if
alg
in
[
'EAST'
,
'DB'
]:
if
alg
in
[
'EAST'
,
'DB'
]:
contain_det
=
True
train_alg_type
=
'det'
else
:
train_alg_type
=
'rec'
return
startup_program
,
train_program
,
place
,
config
,
contain_det
return
startup_program
,
train_program
,
place
,
config
,
train_alg_type
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