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
9e15020a
Commit
9e15020a
authored
Jan 09, 2018
by
Mark Daoust
Browse files
return dataset for r1.5
parent
bc509fa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
samples/core/get_started/iris_data.py
samples/core/get_started/iris_data.py
+6
-6
No files found.
samples/core/get_started/iris_data.py
View file @
9e15020a
...
...
@@ -35,8 +35,8 @@ def train_input_fn(features, labels, batch_size):
# Shuffle, repeat, and batch the examples.
dataset
=
dataset
.
shuffle
(
1000
).
repeat
().
batch
(
batch_size
)
# Return the
read end of the pipeline
.
return
dataset
.
make_one_shot_iterator
().
get_next
()
# Return the
dataset
.
return
dataset
def
eval_input_fn
(
features
,
labels
,
batch_size
):
...
...
@@ -55,8 +55,8 @@ def eval_input_fn(features, labels, batch_size):
assert
batch_size
is
not
None
,
"batch_size must not be None"
dataset
=
dataset
.
batch
(
batch_size
)
# Return the
read end of the pipeline
.
return
dataset
.
make_one_shot_iterator
().
get_next
()
# Return the
dataset
.
return
dataset
# The remainder of this file contains a simple example of a csv parser,
...
...
@@ -89,5 +89,5 @@ def csv_input_fn(csv_path, batch_size):
# Shuffle, repeat, and batch the examples.
dataset
=
dataset
.
shuffle
(
1000
).
repeat
().
batch
(
batch_size
)
# Return the read end of the pipeline.
return
dataset
.
make_one_shot_iterator
().
get_next
()
\ No newline at end of file
# Return the dataset.
return
dataset
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