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