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
7e9d09a8
Commit
7e9d09a8
authored
Oct 08, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix docs and naming
parent
22c0f6ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
docs/conf.py
docs/conf.py
+1
-1
docs/requirements.txt
docs/requirements.txt
+1
-0
examples/DoReFa-Net/alexnet-dorefa.py
examples/DoReFa-Net/alexnet-dorefa.py
+4
-4
No files found.
docs/conf.py
View file @
7e9d09a8
...
@@ -34,7 +34,7 @@ import mock
...
@@ -34,7 +34,7 @@ import mock
#', '.join(map(str, args)) + ', ' \
#', '.join(map(str, args)) + ', ' \
#+ ', '.join(["{}={}".format(k,v) for k,v in kwargs.items()]) + ')'
#+ ', '.join(["{}={}".format(k,v) for k,v in kwargs.items()]) + ')'
MOCK_MODULES
=
[
'
numpy'
,
'
scipy'
,
'tensorflow'
,
'scipy.misc'
,
'h5py'
,
'nltk'
,
MOCK_MODULES
=
[
'scipy'
,
'tensorflow'
,
'scipy.misc'
,
'h5py'
,
'nltk'
,
'cv2'
,
'scipy.io'
,
'dill'
,
'zmq'
,
'subprocess32'
,
'lmdb'
,
'tornado.concurrent'
,
'cv2'
,
'scipy.io'
,
'dill'
,
'zmq'
,
'subprocess32'
,
'lmdb'
,
'tornado.concurrent'
,
'tornado'
,
'msgpack'
,
'msgpack_numpy'
,
'ale_python_interface'
]
'tornado'
,
'msgpack'
,
'msgpack_numpy'
,
'ale_python_interface'
]
for
mod_name
in
MOCK_MODULES
:
for
mod_name
in
MOCK_MODULES
:
...
...
docs/requirements.txt
View file @
7e9d09a8
termcolor
termcolor
numpy
tqdm
tqdm
nltk
nltk
decorator
decorator
...
...
examples/DoReFa-Net/alexnet-dorefa.py
View file @
7e9d09a8
...
@@ -144,10 +144,10 @@ class Model(ModelDesc):
...
@@ -144,10 +144,10 @@ class Model(ModelDesc):
wrong
=
prediction_incorrect
(
logits
,
label
,
1
)
wrong
=
prediction_incorrect
(
logits
,
label
,
1
)
nr_wrong
=
tf
.
reduce_sum
(
wrong
,
name
=
'wrong-top1'
)
nr_wrong
=
tf
.
reduce_sum
(
wrong
,
name
=
'wrong-top1'
)
add_moving_summary
(
tf
.
reduce_mean
(
wrong
,
name
=
'train
_error_
top1'
))
add_moving_summary
(
tf
.
reduce_mean
(
wrong
,
name
=
'train
-error-
top1'
))
wrong
=
prediction_incorrect
(
logits
,
label
,
5
)
wrong
=
prediction_incorrect
(
logits
,
label
,
5
)
nr_wrong
=
tf
.
reduce_sum
(
wrong
,
name
=
'wrong-top5'
)
nr_wrong
=
tf
.
reduce_sum
(
wrong
,
name
=
'wrong-top5'
)
add_moving_summary
(
tf
.
reduce_mean
(
wrong
,
name
=
'train
_error_
top5'
))
add_moving_summary
(
tf
.
reduce_mean
(
wrong
,
name
=
'train
-error-
top5'
))
# weight decay on all W of fc layers
# weight decay on all W of fc layers
wd_cost
=
regularize_cost
(
'fc.*/W'
,
l2_regularizer
(
5e-6
))
wd_cost
=
regularize_cost
(
'fc.*/W'
,
l2_regularizer
(
5e-6
))
...
@@ -235,8 +235,8 @@ def get_config():
...
@@ -235,8 +235,8 @@ def get_config():
'learning_rate'
,
[(
56
,
2e-5
),
(
64
,
4e-6
)]),
'learning_rate'
,
[(
56
,
2e-5
),
(
64
,
4e-6
)]),
InferenceRunner
(
data_test
,
InferenceRunner
(
data_test
,
[
ScalarStats
(
'cost'
),
[
ScalarStats
(
'cost'
),
ClassificationError
(
'wrong-top1'
,
'val-
top1-error
'
),
ClassificationError
(
'wrong-top1'
,
'val-
error-top1
'
),
ClassificationError
(
'wrong-top5'
,
'val-
top5-error
'
)])
ClassificationError
(
'wrong-top5'
,
'val-
error-top1
'
)])
]),
]),
model
=
Model
(),
model
=
Model
(),
step_per_epoch
=
10000
,
step_per_epoch
=
10000
,
...
...
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