Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.tensorflow
Commits
4498bae7
Commit
4498bae7
authored
Nov 13, 2020
by
Tiago de Freitas Pereira
Browse files
Simplify tests [nose]
parent
9e21514f
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/learn/tensorflow/tests/data/db_to_tfrecords_config.py
View file @
4498bae7
...
...
@@ -4,10 +4,7 @@ from bob.learn.tensorflow.data import dataset_using_generator
mnist
=
tf
.
keras
.
datasets
.
mnist
(
x_train
,
y_train
),
(
_
,
_
)
=
mnist
.
load_data
()
samples
=
[
[
a
,
b
,
c
]
for
a
,
b
,
c
in
zip
(
tf
.
keras
.
backend
.
arange
(
len
(
x_train
)),
x_train
,
y_train
)
]
samples
=
zip
(
tf
.
keras
.
backend
.
arange
(
len
(
x_train
)),
x_train
,
y_train
)
def
reader
(
sample
):
...
...
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