Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.tensorflow
Commits
c5c8a51a
Commit
c5c8a51a
authored
Apr 24, 2019
by
Tiago de Freitas Pereira
Browse files
Incremented unit test for the Generator
parent
8989b45c
Pipeline
#29569
failed with stage
in 69 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/learn/tensorflow/test/test_dataset.py
View file @
c5c8a51a
...
...
@@ -95,10 +95,11 @@ def test_dataset_using_generator():
reader
,
\
multiple_samples
=
True
)
iterator
=
dataset
.
make_one_shot_iterator
().
get_next
()
while
True
:
for
i
in
range
(
11
)
:
try
:
sample
=
session
.
run
(
iterator
)
sample
=
session
.
run
(
iterator
)
assert
sample
[
0
][
"data"
].
shape
==
shape
assert
numpy
.
allclose
(
sample
[
0
][
"data"
],
samples
[
i
])
except
tf
.
errors
.
OutOfRangeError
:
break
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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