Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
69c75593
Unverified
Commit
69c75593
authored
Mar 13, 2018
by
Jon Shlens
Committed by
GitHub
Mar 13, 2018
Browse files
Merge pull request #3581 from chengpohi/patch-1
replace `FLAGS.batch_size` by `images.get_shape()[0]`
parents
36abfad3
4a733c29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tutorials/image/cifar10/cifar10.py
tutorials/image/cifar10/cifar10.py
+1
-1
No files found.
tutorials/image/cifar10/cifar10.py
View file @
69c75593
...
...
@@ -240,7 +240,7 @@ def inference(images):
# local3
with
tf
.
variable_scope
(
'local3'
)
as
scope
:
# Move everything into depth so we can perform a single matrix multiply.
reshape
=
tf
.
reshape
(
pool2
,
[
FLAGS
.
batch_size
,
-
1
])
reshape
=
tf
.
reshape
(
pool2
,
[
images
.
get_shape
()[
0
]
,
-
1
])
dim
=
reshape
.
get_shape
()[
1
].
value
weights
=
_variable_with_weight_decay
(
'weights'
,
shape
=
[
dim
,
384
],
stddev
=
0.04
,
wd
=
0.004
)
...
...
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