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
bf4d8938
Commit
bf4d8938
authored
Feb 01, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo; make ParamSetter non-chief-only
parent
b1c5766d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
docs/tutorial/efficient-dataflow.md
docs/tutorial/efficient-dataflow.md
+1
-1
tensorpack/callbacks/param.py
tensorpack/callbacks/param.py
+2
-0
tensorpack/utils/utils.py
tensorpack/utils/utils.py
+2
-2
No files found.
docs/tutorial/efficient-dataflow.md
View file @
bf4d8938
...
...
@@ -140,7 +140,7 @@ We can also dump the dataset into one single LMDB file and read it sequentially.
```
python
from
tensorpack.dataflow
import
*
class
BinaryILSVRC12
(
dataset
.
ILSVRCFiles
):
class
BinaryILSVRC12
(
dataset
.
ILSVRC
12
Files
):
def
get_data
(
self
):
for
fname
,
label
in
super
(
BinaryILSVRC12
,
self
)
.
get_data
():
with
open
(
fname
,
'rb'
)
as
f
:
...
...
tensorpack/callbacks/param.py
View file @
bf4d8938
...
...
@@ -112,6 +112,8 @@ class HyperParamSetter(Callback):
An abstract base callback to set hyperparameters.
"""
_chief_only
=
False
def
__init__
(
self
,
param
):
"""
Args:
...
...
tensorpack/utils/utils.py
View file @
bf4d8938
...
...
@@ -127,7 +127,7 @@ def get_tqdm_kwargs(**kwargs):
f
=
kwargs
.
get
(
'file'
,
sys
.
stderr
)
isatty
=
f
.
isatty
()
#
TODO when run under mpirun
, isatty is always False
#
NOTE when run under mpirun/slurm
, isatty is always False
# Jupyter notebook should be recognized as tty.
# Wait for https://github.com/ipython/ipykernel/issues/268
try
:
...
...
@@ -141,7 +141,7 @@ def get_tqdm_kwargs(**kwargs):
default
[
'mininterval'
]
=
0.5
else
:
# If not a tty, don't refresh progress bar that often
default
[
'mininterval'
]
=
30
0
default
[
'mininterval'
]
=
18
0
default
.
update
(
kwargs
)
return
default
...
...
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