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
e8e987a6
Commit
e8e987a6
authored
Oct 08, 2020
by
Chen Chen
Committed by
A. Unique TensorFlower
Oct 08, 2020
Browse files
internal change
PiperOrigin-RevId: 336042908
parent
bd73276e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
official/core/train_lib.py
official/core/train_lib.py
+0
-2
official/core/train_utils.py
official/core/train_utils.py
+1
-1
No files found.
official/core/train_lib.py
View file @
e8e987a6
...
...
@@ -169,11 +169,9 @@ def run_experiment(distribution_strategy: tf.distribute.Strategy,
"""
with
distribution_strategy
.
scope
():
model
=
task
.
build_model
()
trainer
=
train_utils
.
create_trainer
(
params
,
task
,
model
=
model
,
model_dir
=
model_dir
,
train
=
'train'
in
mode
,
evaluate
=
(
'eval'
in
mode
)
or
run_post_eval
,
...
...
official/core/train_utils.py
View file @
e8e987a6
...
...
@@ -34,7 +34,6 @@ from official.modeling.hyperparams import config_definitions
def
create_trainer
(
params
:
config_definitions
.
ExperimentConfig
,
task
:
base_task
.
Task
,
model
:
tf
.
keras
.
Model
,
model_dir
:
str
,
train
:
bool
,
evaluate
:
bool
,
...
...
@@ -42,6 +41,7 @@ def create_trainer(params: config_definitions.ExperimentConfig,
"""Create trainer."""
del
model_dir
logging
.
info
(
'Running default trainer.'
)
model
=
task
.
build_model
()
trainer
=
base_trainer
.
Trainer
(
params
,
task
,
...
...
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