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
a12cec09
Commit
a12cec09
authored
Mar 11, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Mar 11, 2020
Browse files
Internal change
PiperOrigin-RevId: 300477605
parent
e8afeaee
Changes
34
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
4 additions
and
14 deletions
+4
-14
official/nlp/modeling/networks/transformer_encoder_test.py
official/nlp/modeling/networks/transformer_encoder_test.py
+0
-1
official/nlp/optimization.py
official/nlp/optimization.py
+1
-1
official/nlp/transformer/model_utils_test.py
official/nlp/transformer/model_utils_test.py
+0
-1
official/nlp/transformer/transformer_layers_test.py
official/nlp/transformer/transformer_layers_test.py
+0
-1
official/nlp/transformer/transformer_main.py
official/nlp/transformer/transformer_main.py
+0
-1
official/nlp/transformer/transformer_main_test.py
official/nlp/transformer/transformer_main_test.py
+0
-1
official/nlp/transformer/transformer_test.py
official/nlp/transformer/transformer_test.py
+0
-1
official/nlp/transformer/utils/tokenizer.py
official/nlp/transformer/utils/tokenizer.py
+1
-1
official/nlp/transformer/utils/tokenizer_test.py
official/nlp/transformer/utils/tokenizer_test.py
+1
-1
official/nlp/xlnet/preprocess_classification_data.py
official/nlp/xlnet/preprocess_classification_data.py
+1
-1
official/nlp/xlnet/run_classifier.py
official/nlp/xlnet/run_classifier.py
+0
-1
official/nlp/xlnet/run_pretrain.py
official/nlp/xlnet/run_pretrain.py
+0
-1
official/nlp/xlnet/run_squad.py
official/nlp/xlnet/run_squad.py
+0
-1
official/nlp/xlnet/xlnet_modeling_test.py
official/nlp/xlnet/xlnet_modeling_test.py
+0
-1
No files found.
official/nlp/modeling/networks/transformer_encoder_test.py
View file @
a12cec09
...
...
@@ -200,5 +200,4 @@ class TransformerEncoderTest(keras_parameterized.TestCase):
if
__name__
==
"__main__"
:
assert
tf
.
version
.
VERSION
.
startswith
(
'2.'
)
tf
.
test
.
main
()
official/nlp/optimization.py
View file @
a12cec09
...
...
@@ -20,7 +20,7 @@ from __future__ import print_function
import
re
import
tensorflow
as
tf
import
tensorflow
.compat.v2
as
tf
class
WarmUp
(
tf
.
keras
.
optimizers
.
schedules
.
LearningRateSchedule
):
...
...
official/nlp/transformer/model_utils_test.py
View file @
a12cec09
...
...
@@ -59,5 +59,4 @@ class ModelUtilsTest(tf.test.TestCase):
if
__name__
==
"__main__"
:
assert
tf
.
version
.
VERSION
.
startswith
(
'2.'
)
tf
.
test
.
main
()
official/nlp/transformer/transformer_layers_test.py
View file @
a12cec09
...
...
@@ -94,5 +94,4 @@ class TransformerLayersTest(tf.test.TestCase):
if
__name__
==
"__main__"
:
tf
.
compat
.
v1
.
enable_v2_behavior
()
tf
.
test
.
main
()
official/nlp/transformer/transformer_main.py
View file @
a12cec09
...
...
@@ -474,7 +474,6 @@ def main(_):
if
__name__
==
"__main__"
:
tf
.
compat
.
v1
.
enable_v2_behavior
()
logging
.
set_verbosity
(
logging
.
INFO
)
misc
.
define_transformer_flags
()
app
.
run
(
main
)
official/nlp/transformer/transformer_main_test.py
View file @
a12cec09
...
...
@@ -187,5 +187,4 @@ class TransformerTaskTest(tf.test.TestCase):
if
__name__
==
'__main__'
:
tf
.
compat
.
v1
.
enable_v2_behavior
()
tf
.
test
.
main
()
official/nlp/transformer/transformer_test.py
View file @
a12cec09
...
...
@@ -65,5 +65,4 @@ class TransformerV2Test(tf.test.TestCase):
if
__name__
==
"__main__"
:
tf
.
compat
.
v1
.
enable_v2_behavior
()
tf
.
test
.
main
()
official/nlp/transformer/utils/tokenizer.py
View file @
a12cec09
...
...
@@ -26,7 +26,7 @@ import unicodedata
import
numpy
as
np
import
six
from
six.moves
import
xrange
# pylint: disable=redefined-builtin
import
tensorflow
as
tf
import
tensorflow
.compat.v2
as
tf
PAD
=
"<pad>"
PAD_ID
=
0
...
...
official/nlp/transformer/utils/tokenizer_test.py
View file @
a12cec09
...
...
@@ -17,7 +17,7 @@
import
collections
import
tempfile
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
import
tensorflow
.compat.v2
as
tf
# pylint: disable=g-bad-import-order
from
official.nlp.transformer.utils
import
tokenizer
...
...
official/nlp/xlnet/preprocess_classification_data.py
View file @
a12cec09
...
...
@@ -455,5 +455,5 @@ def main(_):
if
__name__
==
"__main__"
:
assert
tf
.
version
.
VERSION
.
startswith
(
'2.'
)
tf
.
enable_v2_behavior
(
)
app
.
run
(
main
)
official/nlp/xlnet/run_classifier.py
View file @
a12cec09
...
...
@@ -193,5 +193,4 @@ def main(unused_argv):
if
__name__
==
"__main__"
:
assert
tf
.
version
.
VERSION
.
startswith
(
'2.'
)
app
.
run
(
main
)
official/nlp/xlnet/run_pretrain.py
View file @
a12cec09
...
...
@@ -153,5 +153,4 @@ def main(unused_argv):
if
__name__
==
"__main__"
:
assert
tf
.
version
.
VERSION
.
startswith
(
'2.'
)
app
.
run
(
main
)
official/nlp/xlnet/run_squad.py
View file @
a12cec09
...
...
@@ -301,5 +301,4 @@ def main(unused_argv):
if
__name__
==
"__main__"
:
assert
tf
.
version
.
VERSION
.
startswith
(
'2.'
)
app
.
run
(
main
)
official/nlp/xlnet/xlnet_modeling_test.py
View file @
a12cec09
...
...
@@ -49,5 +49,4 @@ class PositionalEmbeddingLayerTest(tf.test.TestCase):
self
.
assertAllClose
(
pos_emb
,
target
)
if
__name__
==
"__main__"
:
assert
tf
.
version
.
VERSION
.
startswith
(
'2.'
)
tf
.
test
.
main
()
Prev
1
2
Next
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