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
31021959
Commit
31021959
authored
Nov 27, 2018
by
Priya Gupta
Browse files
Add keras resnet code
parent
2d9d7943
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/resnet/imagenet_main.py
official/resnet/imagenet_main.py
+2
-2
No files found.
official/resnet/imagenet_main.py
View file @
31021959
...
@@ -160,7 +160,7 @@ def parse_record(raw_record, is_training, dtype):
...
@@ -160,7 +160,7 @@ def parse_record(raw_record, is_training, dtype):
def
input_fn
(
is_training
,
data_dir
,
batch_size
,
num_epochs
=
1
,
def
input_fn
(
is_training
,
data_dir
,
batch_size
,
num_epochs
=
1
,
dtype
=
tf
.
float32
,
datasets_num_private_threads
=
None
,
dtype
=
tf
.
float32
,
datasets_num_private_threads
=
None
,
num_parallel_batches
=
1
):
num_parallel_batches
=
1
,
parse_record_fn
=
parse_record
):
"""Input function which provides batches for train or eval.
"""Input function which provides batches for train or eval.
Args:
Args:
...
@@ -195,7 +195,7 @@ def input_fn(is_training, data_dir, batch_size, num_epochs=1,
...
@@ -195,7 +195,7 @@ def input_fn(is_training, data_dir, batch_size, num_epochs=1,
is_training
=
is_training
,
is_training
=
is_training
,
batch_size
=
batch_size
,
batch_size
=
batch_size
,
shuffle_buffer
=
_SHUFFLE_BUFFER
,
shuffle_buffer
=
_SHUFFLE_BUFFER
,
parse_record_fn
=
parse_record
,
parse_record_fn
=
parse_record
_fn
,
num_epochs
=
num_epochs
,
num_epochs
=
num_epochs
,
dtype
=
dtype
,
dtype
=
dtype
,
datasets_num_private_threads
=
datasets_num_private_threads
,
datasets_num_private_threads
=
datasets_num_private_threads
,
...
...
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