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
fb9f9ee6
Commit
fb9f9ee6
authored
Jan 25, 2021
by
Abdullah Rashwan
Committed by
A. Unique TensorFlower
Jan 25, 2021
Browse files
Internal change
PiperOrigin-RevId: 353699625
parent
32dcc1e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/vision/beta/dataloaders/dataset_fn.py
official/vision/beta/dataloaders/dataset_fn.py
+1
-1
No files found.
official/vision/beta/dataloaders/dataset_fn.py
View file @
fb9f9ee6
...
...
@@ -22,7 +22,7 @@ PossibleDatasetType = Union[Type[tf.data.Dataset], Callable[[tf.Tensor], Any]]
def
pick_dataset_fn
(
file_type
:
str
)
->
PossibleDatasetType
:
if
file_type
==
'tf
_
record'
:
if
file_type
==
'tfrecord'
:
return
tf
.
data
.
TFRecordDataset
raise
ValueError
(
'Unrecognized file_type: {}'
.
format
(
file_type
))
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