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
cc0ad1cb
Commit
cc0ad1cb
authored
Dec 19, 2018
by
Alexandre Passos
Committed by
Taylor Robie
Dec 19, 2018
Browse files
Avoid using tf.contrib.data as it's not tf2-safe (#5755)
parent
2066a146
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/recommendation/data_preprocessing.py
official/recommendation/data_preprocessing.py
+1
-1
No files found.
official/recommendation/data_preprocessing.py
View file @
cc0ad1cb
...
@@ -639,7 +639,7 @@ def make_input_fn(
...
@@ -639,7 +639,7 @@ def make_input_fn(
.
format
(
epoch_metadata
[
"batch_size"
],
batch_size
))
.
format
(
epoch_metadata
[
"batch_size"
],
batch_size
))
record_files_ds
=
tf
.
data
.
Dataset
.
list_files
(
record_files
,
shuffle
=
False
)
record_files_ds
=
tf
.
data
.
Dataset
.
list_files
(
record_files
,
shuffle
=
False
)
interleave
=
tf
.
contrib
.
da
ta
.
parallel_interleave
(
interleave
=
tf
.
data
.
experimen
ta
l
.
parallel_interleave
(
tf
.
data
.
TFRecordDataset
,
tf
.
data
.
TFRecordDataset
,
cycle_length
=
4
,
cycle_length
=
4
,
block_length
=
100000
,
block_length
=
100000
,
...
...
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