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
95b6437a
Commit
95b6437a
authored
Nov 06, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a typo in dorefa
parent
734b64aa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
examples/DoReFa-Net/alexnet-dorefa.py
examples/DoReFa-Net/alexnet-dorefa.py
+1
-1
examples/ResNet/imagenet-resnet.py
examples/ResNet/imagenet-resnet.py
+1
-0
tensorpack/predict/dataset.py
tensorpack/predict/dataset.py
+1
-1
No files found.
examples/DoReFa-Net/alexnet-dorefa.py
View file @
95b6437a
...
...
@@ -233,7 +233,7 @@ def get_config():
InferenceRunner
(
data_test
,
[
ScalarStats
(
'cost'
),
ClassificationError
(
'wrong-top1'
,
'val-error-top1'
),
ClassificationError
(
'wrong-top5'
,
'val-error-top
1
'
)])
ClassificationError
(
'wrong-top5'
,
'val-error-top
5
'
)])
]),
model
=
Model
(),
step_per_epoch
=
10000
,
...
...
examples/ResNet/imagenet-resnet.py
View file @
95b6437a
...
...
@@ -13,6 +13,7 @@ import multiprocessing
import
tensorflow
as
tf
from
tensorflow.contrib.layers
import
variance_scaling_initializer
from
tensorpack
import
*
from
tensorpack.utils.stat
import
RatioCounter
from
tensorpack.tfutils.symbolic_functions
import
*
from
tensorpack.tfutils.summary
import
*
...
...
tensorpack/predict/dataset.py
View file @
95b6437a
...
...
@@ -87,7 +87,7 @@ class MultiProcessDatasetPredictor(DatasetPredictorBase):
self
.
nr_proc
,
len
(
gpus
))
except
KeyError
:
# TODO number of GPUs not checked
gpus
=
list
(
range
(
self
.
nr_
gpu
))
gpus
=
list
(
range
(
self
.
nr_
proc
))
else
:
gpus
=
[
''
]
*
self
.
nr_proc
self
.
workers
=
[
MultiProcessQueuePredictWorker
(
...
...
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