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
ceb004a1
Commit
ceb004a1
authored
Jul 29, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix resnet on CPU
parent
f5d5d4c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
examples/ResNet/imagenet-resnet.py
examples/ResNet/imagenet-resnet.py
+4
-4
No files found.
examples/ResNet/imagenet-resnet.py
View file @
ceb004a1
...
...
@@ -84,9 +84,9 @@ def get_data(train_or_test):
def
get_config
(
fake
=
False
,
data_format
=
'NCHW'
):
nr_
gpu
=
get_nr_gpu
(
)
BATCH_SIZE
=
TOTAL_BATCH_SIZE
//
nr_
gpu
logger
.
info
(
"Running on {}
GPUs. Batch size per GPU: {}"
.
format
(
nr_gpu
,
BATCH_SIZE
))
nr_
tower
=
max
(
get_nr_gpu
(),
1
)
BATCH_SIZE
=
TOTAL_BATCH_SIZE
//
nr_
tower
logger
.
info
(
"Running on {}
towers. Batch size per tower: {}"
.
format
(
nr_tower
,
BATCH_SIZE
))
if
fake
:
dataset_train
=
dataset_val
=
FakeData
(
...
...
@@ -109,7 +109,7 @@ def get_config(fake=False, data_format='NCHW'):
],
steps_per_epoch
=
5000
,
max_epoch
=
110
,
nr_tower
=
nr_
gpu
nr_tower
=
nr_
tower
)
...
...
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