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
49b223b6
Commit
49b223b6
authored
May 11, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 311048706
parent
36d27f01
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
official/recommendation/ncf_input_pipeline.py
official/recommendation/ncf_input_pipeline.py
+3
-1
No files found.
official/recommendation/ncf_input_pipeline.py
View file @
49b223b6
...
...
@@ -45,7 +45,9 @@ def create_dataset_from_tf_record_files(input_file_pattern,
raise
ValueError
(
"Pre-batch ({}) size is not equal to batch "
"size ({})"
.
format
(
pre_batch_size
,
batch_size
))
files_dataset
=
files_dataset
.
shard
(
NUM_SHARDS
,
shard_index
)
dataset
=
files_dataset
.
interleave
(
tf
.
data
.
TFRecordDataset
)
dataset
=
files_dataset
.
interleave
(
tf
.
data
.
TFRecordDataset
,
num_parallel_calls
=
tf
.
data
.
experimental
.
AUTOTUNE
)
decode_fn
=
functools
.
partial
(
data_pipeline
.
DatasetManager
.
deserialize
,
batch_size
=
pre_batch_size
,
...
...
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