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
e934a4ad
Commit
e934a4ad
authored
Mar 29, 2018
by
Zi Yin
Browse files
fixed dimension compatibility
parent
16af6582
Changes
1
Show 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 @
e934a4ad
...
...
@@ -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
,
[
images
.
get_shape
()[
0
],
-
1
])
reshape
=
tf
.
reshape
(
pool2
,
[
images
.
get_shape
()
.
as_list
()
[
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