Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
e51323c1
Commit
e51323c1
authored
Dec 03, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add docs about logger (fix #998)
parent
0e5c83b5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
docs/conf.py
docs/conf.py
+1
-0
tensorpack/dataflow/parallel.py
tensorpack/dataflow/parallel.py
+3
-3
tensorpack/utils/logger.py
tensorpack/utils/logger.py
+12
-0
No files found.
docs/conf.py
View file @
e51323c1
...
...
@@ -385,6 +385,7 @@ _DEPRECATED_NAMES = set([
'PeriodicRunHooks'
,
'get_nr_gpu'
,
'start_test'
,
# TestDataSpeed
'ThreadedMapData'
,
# deprecated or renamed symbolic code
'ImageSample'
,
...
...
tensorpack/dataflow/parallel.py
View file @
e51323c1
...
...
@@ -141,7 +141,7 @@ class MultiProcessPrefetchData(ProxyDataFlow):
This implies that there will be duplication, reordering, etc.
You probably only want to use it for training.
For example, if your original dataflow
produced
the same first datapoint,
For example, if your original dataflow
contains no randomness and produces
the same first datapoint,
then after parallel prefetching, the datapoint will be produced ``nr_proc`` times
at the beginning.
Even when your original dataflow is fully shuffled, you still need to be aware of the
...
...
@@ -238,7 +238,7 @@ class PrefetchDataZMQ(_MultiProcessZMQDataFlow):
This implies that there will be duplication, reordering, etc.
You probably only want to use it for training.
For example, if your original dataflow
produced
the same first datapoint,
For example, if your original dataflow
contains no randomness and produces
the same first datapoint,
then after parallel prefetching, the datapoint will be produced ``nr_proc`` times
at the beginning.
Even when your original dataflow is fully shuffled, you still need to be aware of the
...
...
@@ -386,7 +386,7 @@ class MultiThreadPrefetchData(DataFlow):
This implies that there will be duplication, reordering, etc.
You probably only want to use it for training.
For example, if your original dataflow
produced
the same first datapoint,
For example, if your original dataflow
contains no randomness and produces
the same first datapoint,
then after parallel prefetching, the datapoint will be produced ``nr_thread`` times
at the beginning.
Even when your original dataflow is fully shuffled, you still need to be aware of the
...
...
tensorpack/utils/logger.py
View file @
e51323c1
# -*- coding: utf-8 -*-
# File: logger.py
"""
The logger module itself has the common logging functions of Python's
:class:`logging.Logger`. For example:
.. code-block:: python
from tensorpack.utils import logger
logger.set_logger_dir('train_log/test')
logger.info("Test")
logger.error("Error happened!")
"""
import
logging
import
os
...
...
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