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
dee751fa
Commit
dee751fa
authored
Jan 13, 2017
by
Neal Wu
Committed by
GitHub
Jan 13, 2017
Browse files
Merge pull request #895 from tensorflow/cifar10-inputs
Added shape to cifar10_input.py
parents
2cd62f6c
19c23e72
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tutorials/image/cifar10/cifar10_input.py
tutorials/image/cifar10/cifar10_input.py
+4
-0
No files found.
tutorials/image/cifar10/cifar10_input.py
View file @
dee751fa
...
...
@@ -242,6 +242,10 @@ def inputs(eval_data, data_dir, batch_size):
# Subtract off the mean and divide by the variance of the pixels.
float_image
=
tf
.
image
.
per_image_standardization
(
resized_image
)
# Set the shapes of tensors.
float_image
.
set_shape
([
height
,
width
,
3
])
read_input
.
label
.
set_shape
([
1
])
# Ensure that the random shuffling has good mixing properties.
min_fraction_of_examples_in_queue
=
0.4
min_queue_examples
=
int
(
num_examples_per_epoch
*
...
...
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