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
ed454d14
Commit
ed454d14
authored
Jul 01, 2020
by
LDOUBLEV
Browse files
print to logger.info
parent
3892a8ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
tools/train.py
tools/train.py
+2
-3
No files found.
tools/train.py
View file @
ed454d14
...
@@ -122,9 +122,8 @@ def test_reader():
...
@@ -122,9 +122,8 @@ def test_reader():
starttime
=
time
.
time
()
starttime
=
time
.
time
()
print
(
"reader:"
,
count
,
len
(
data
),
batch_time
)
print
(
"reader:"
,
count
,
len
(
data
),
batch_time
)
except
Exception
as
e
:
except
Exception
as
e
:
print
(
e
)
logger
.
info
(
e
)
print
(
"finish reader:"
,
count
)
logger
.
info
(
"finish reader: {}, Success!"
.
format
(
count
))
print
(
"success"
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
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