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
68c3c655
Commit
68c3c655
authored
Aug 28, 2019
by
Reed Wanderman-Milne
Committed by
A. Unique TensorFlower
Aug 28, 2019
Browse files
Enable V2 behavior in transformer_main.py.
The transformer model requires TF2. PiperOrigin-RevId: 266026991
parent
503b1e61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
official/transformer/v2/transformer_main.py
official/transformer/v2/transformer_main.py
+1
-0
No files found.
official/transformer/v2/transformer_main.py
View file @
68c3c655
...
@@ -464,6 +464,7 @@ def main(_):
...
@@ -464,6 +464,7 @@ def main(_):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
tf
.
compat
.
v1
.
enable_v2_behavior
()
logging
.
set_verbosity
(
logging
.
INFO
)
logging
.
set_verbosity
(
logging
.
INFO
)
misc
.
define_transformer_flags
()
misc
.
define_transformer_flags
()
app
.
run
(
main
)
app
.
run
(
main
)
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