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
32235d83
Commit
32235d83
authored
Aug 26, 2019
by
Igor Saprykin
Committed by
A. Unique TensorFlower
Aug 26, 2019
Browse files
Internal change
PiperOrigin-RevId: 265499806
parent
12f9403f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
official/transformer/v2/transformer_main_test.py
official/transformer/v2/transformer_main_test.py
+3
-0
No files found.
official/transformer/v2/transformer_main_test.py
View file @
32235d83
...
@@ -20,6 +20,7 @@ from __future__ import print_function
...
@@ -20,6 +20,7 @@ from __future__ import print_function
import
os
import
os
import
re
import
re
import
sys
import
unittest
import
unittest
from
absl
import
flags
from
absl
import
flags
...
@@ -178,6 +179,8 @@ class TransformerTaskTest(tf.test.TestCase):
...
@@ -178,6 +179,8 @@ class TransformerTaskTest(tf.test.TestCase):
def
test_eval
(
self
):
def
test_eval
(
self
):
if
context
.
num_gpus
()
>=
2
:
if
context
.
num_gpus
()
>=
2
:
self
.
skipTest
(
'No need to test 2+ GPUs without a distribution strategy.'
)
self
.
skipTest
(
'No need to test 2+ GPUs without a distribution strategy.'
)
if
'test_xla'
in
sys
.
argv
[
0
]:
self
.
skipTest
(
'TODO(xla): Make this test faster under XLA.'
)
self
.
_prepare_files_and_flags
()
self
.
_prepare_files_and_flags
()
t
=
tm
.
TransformerTask
(
FLAGS
)
t
=
tm
.
TransformerTask
(
FLAGS
)
t
.
eval
()
t
.
eval
()
...
...
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