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
a8e9aa95
Commit
a8e9aa95
authored
Dec 10, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
da062119
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
8 deletions
+13
-8
docs/tutorial/faq.md
docs/tutorial/faq.md
+2
-0
docs/tutorial/inference.md
docs/tutorial/inference.md
+3
-3
docs/tutorial/performance-tuning.md
docs/tutorial/performance-tuning.md
+5
-3
docs/tutorial/summary.md
docs/tutorial/summary.md
+1
-1
docs/tutorial/trainer.md
docs/tutorial/trainer.md
+2
-1
No files found.
docs/tutorial/faq.md
View file @
a8e9aa95
...
...
@@ -27,6 +27,8 @@ Then it is a good time to open an issue.
3.
The
[
ProgressBar
](
../modules/callbacks.html#tensorpack.callbacks.ProgressBar
)
callback can print some scalar statistics, though not enabled by default.
4.
Read
[
Summary and Loggin
](
summary.html
)
for more options on logging.
## How to freeze some variables in training
1.
You can simply use
`tf.stop_gradient`
in your model code in some situations (e.g. to freeze first several layers).
...
...
docs/tutorial/inference.md
View file @
a8e9aa95
...
...
@@ -30,8 +30,8 @@ or you may need placeholders in the inference graph, or the training graph conta
which you want to remove.
In this case, you can always create a new graph with pure TensorFlow.
The only t
hing tensorpack has for this purpos
e is
`OfflinePredictor`
,
a simple function to build the graph and a callable for you.
It is mainly for quick demo purpose.
The only t
ool tensorpack has for after-training inferenc
e is
`OfflinePredictor`
,
a simple function to build the graph and
return
a callable for you.
It is mainly for quick demo purpose
s
.
It only runs inference on Python data, therefore may not be the most efficient way.
Check out some examples for its usage.
docs/tutorial/performance-tuning.md
View file @
a8e9aa95
...
...
@@ -2,10 +2,12 @@
# Performance Tuning
__We do not know why your training is slow__
(and most of the times it's not a tensorpack problem).
Performance is different on every machine. So you need to figure out most parts by your own.
Performance is different across machines and tasks.
So you need to figure out most parts by your own.
Here's a list of things you can do when your training is slow.
If you're going to open an issue about slow training, PLEASE do them and include your findings.
If you're going to open an issue about slow training,
PLEASE do them and include your findings.
## Figure out the bottleneck
...
...
@@ -75,4 +77,4 @@ If you're unable to scale to multiple GPUs almost linearly:
There isn't a simple answer to this.
You may try a different multi-GPU trainer; the speed can vary a lot sometimes.
Note that scalibility is always measured
with the same "batch size per GPU", not the same total equivalent batch size
.
Note that scalibility is always measured
by keeping "batch size per GPU" constant
.
docs/tutorial/summary.md
View file @
a8e9aa95
# Summary and Logging
During training, everything other than the
training iterations themselves are executed through callbacks, including all the logging
.
During training, everything other than the
iterations are executed through callbacks
.
This tutorial will explain how summaries and logging are handled in callbacks and how can you customize them.
The default logging behavior should be good enough for normal use cases, so you may skip this tutorial.
...
...
docs/tutorial/trainer.md
View file @
a8e9aa95
...
...
@@ -23,6 +23,7 @@ The concept of tower is used mainly to support:
2.
Automatically building the graph for inference, where a replicate is built under inference mode.
You'll specify a tower function when you use
`TowerTrainer`
.
If you use
`ModelDesc`
, the
`build_graph`
method is the tower function.
The function needs to follow some conventions:
1.
It will always be called under a :class:
`TowerContext`
.
...
...
@@ -41,7 +42,7 @@ in the efficient way and all reach the same performance as the
[
official TF benchmarks
](
https://www.tensorflow.org/performance/benchmarks
)
.
It takes only one line of code change to use them.
Note some
common problems
when using these trainers:
Note some
__common problems__
when using these trainers:
1.
In each iteration all GPUs (all replicates of the model) will take tensors from the
`InputSource`
,
instead of taking one for all and split.
...
...
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