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
07c09ccc
Commit
07c09ccc
authored
Aug 15, 2019
by
Igor Saprykin
Committed by
A. Unique TensorFlower
Aug 15, 2019
Browse files
Internal change
PiperOrigin-RevId: 263669433
parent
47e783e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/transformer/v2/transformer_main_test.py
official/transformer/v2/transformer_main_test.py
+2
-1
No files found.
official/transformer/v2/transformer_main_test.py
View file @
07c09ccc
...
@@ -103,7 +103,8 @@ class TransformerTaskTest(tf.test.TestCase):
...
@@ -103,7 +103,8 @@ class TransformerTaskTest(tf.test.TestCase):
t
=
tm
.
TransformerTask
(
FLAGS
)
t
=
tm
.
TransformerTask
(
FLAGS
)
t
.
train
()
t
.
train
()
@
unittest
.
skipUnless
(
tf
.
test
.
is_built_with_cuda
(),
'requires GPU'
)
@
unittest
.
skipIf
(
tf
.
test
.
is_built_with_cuda
(),
'TODO(b/139497127): '
'Test is skipped because tf.pad doesn
\'
t work with GPU.'
)
def
test_train_fp16
(
self
):
def
test_train_fp16
(
self
):
FLAGS
.
dtype
=
'fp16'
FLAGS
.
dtype
=
'fp16'
t
=
tm
.
TransformerTask
(
FLAGS
)
t
=
tm
.
TransformerTask
(
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