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
cb6d8d6a
Commit
cb6d8d6a
authored
Sep 08, 2020
by
Rajagopal Ananthanarayanan
Committed by
A. Unique TensorFlower
Sep 08, 2020
Browse files
Internal change
PiperOrigin-RevId: 330660757
parent
7c30cae0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
official/core/train_utils.py
official/core/train_utils.py
+12
-1
No files found.
official/core/train_utils.py
View file @
cb6d8d6a
...
@@ -18,9 +18,10 @@
...
@@ -18,9 +18,10 @@
import
json
import
json
import
os
import
os
import
pprint
import
pprint
from
typing
import
Any
from
typing
import
Any
,
List
from
absl
import
logging
from
absl
import
logging
import
dataclasses
import
orbit
import
orbit
import
tensorflow
as
tf
import
tensorflow
as
tf
...
@@ -47,6 +48,16 @@ def create_trainer(
...
@@ -47,6 +48,16 @@ def create_trainer(
return
trainer
return
trainer
@
dataclasses
.
dataclass
class
ParseConfigOptions
:
"""Use this dataclass instead of FLAGS to customize parse_configuration()."""
experiment
:
str
config_file
:
List
[
str
]
tpu
:
str
=
''
tf_data_service
:
str
=
''
params_override
:
str
=
''
def
parse_configuration
(
flags_obj
):
def
parse_configuration
(
flags_obj
):
"""Parses ExperimentConfig from flags."""
"""Parses ExperimentConfig from flags."""
...
...
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