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
844d8e69
Commit
844d8e69
authored
Jul 30, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix resnet
parent
2a1af832
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
examples/ResNet/imagenet-resnet-se.py
examples/ResNet/imagenet-resnet-se.py
+1
-0
examples/ResNet/imagenet-resnet.py
examples/ResNet/imagenet-resnet.py
+1
-0
No files found.
examples/ResNet/imagenet-resnet-se.py
View file @
844d8e69
...
...
@@ -82,6 +82,7 @@ def get_data(train_or_test):
def
get_config
():
assert
tf
.
test
.
is_gpu_available
()
nr_gpu
=
get_nr_gpu
()
global
BATCH_SIZE
BATCH_SIZE
=
TOTAL_BATCH_SIZE
//
nr_gpu
logger
.
info
(
"Running on {} GPUs. Batch size per GPU: {}"
.
format
(
nr_gpu
,
BATCH_SIZE
))
...
...
examples/ResNet/imagenet-resnet.py
View file @
844d8e69
...
...
@@ -85,6 +85,7 @@ def get_data(train_or_test):
def
get_config
(
fake
=
False
,
data_format
=
'NCHW'
):
nr_tower
=
max
(
get_nr_gpu
(),
1
)
global
BATCH_SIZE
BATCH_SIZE
=
TOTAL_BATCH_SIZE
//
nr_tower
logger
.
info
(
"Running on {} towers. Batch size per tower: {}"
.
format
(
nr_tower
,
BATCH_SIZE
))
...
...
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