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
f5ddc305
Commit
f5ddc305
authored
Mar 10, 2022
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Mar 10, 2022
Browse files
Internal change
PiperOrigin-RevId: 433881862
parent
162c43c2
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
28 additions
and
29 deletions
+28
-29
official/legacy/xlnet/README.md
official/legacy/xlnet/README.md
+0
-0
official/legacy/xlnet/__init__.py
official/legacy/xlnet/__init__.py
+0
-0
official/legacy/xlnet/classifier_utils.py
official/legacy/xlnet/classifier_utils.py
+1
-1
official/legacy/xlnet/common_flags.py
official/legacy/xlnet/common_flags.py
+0
-0
official/legacy/xlnet/data_utils.py
official/legacy/xlnet/data_utils.py
+0
-0
official/legacy/xlnet/optimization.py
official/legacy/xlnet/optimization.py
+0
-0
official/legacy/xlnet/preprocess_classification_data.py
official/legacy/xlnet/preprocess_classification_data.py
+2
-2
official/legacy/xlnet/preprocess_pretrain_data.py
official/legacy/xlnet/preprocess_pretrain_data.py
+1
-1
official/legacy/xlnet/preprocess_squad_data.py
official/legacy/xlnet/preprocess_squad_data.py
+1
-1
official/legacy/xlnet/preprocess_utils.py
official/legacy/xlnet/preprocess_utils.py
+0
-0
official/legacy/xlnet/run_classifier.py
official/legacy/xlnet/run_classifier.py
+6
-6
official/legacy/xlnet/run_pretrain.py
official/legacy/xlnet/run_pretrain.py
+6
-6
official/legacy/xlnet/run_squad.py
official/legacy/xlnet/run_squad.py
+7
-7
official/legacy/xlnet/squad_utils.py
official/legacy/xlnet/squad_utils.py
+2
-2
official/legacy/xlnet/training_utils.py
official/legacy/xlnet/training_utils.py
+1
-1
official/legacy/xlnet/xlnet_config.py
official/legacy/xlnet/xlnet_config.py
+0
-0
official/legacy/xlnet/xlnet_modeling.py
official/legacy/xlnet/xlnet_modeling.py
+1
-2
No files found.
official/
nlp
/xlnet/README.md
→
official/
legacy
/xlnet/README.md
View file @
f5ddc305
File moved
official/
nlp
/xlnet/__init__.py
→
official/
legacy
/xlnet/__init__.py
View file @
f5ddc305
File moved
official/
nlp
/xlnet/classifier_utils.py
→
official/
legacy
/xlnet/classifier_utils.py
View file @
f5ddc305
...
...
@@ -16,7 +16,7 @@
from
absl
import
logging
from
official.
nlp
.xlnet
import
data_utils
from
official.
legacy
.xlnet
import
data_utils
SEG_ID_A
=
0
SEG_ID_B
=
1
...
...
official/
nlp
/xlnet/common_flags.py
→
official/
legacy
/xlnet/common_flags.py
View file @
f5ddc305
File moved
official/
nlp
/xlnet/data_utils.py
→
official/
legacy
/xlnet/data_utils.py
View file @
f5ddc305
File moved
official/
nlp
/xlnet/optimization.py
→
official/
legacy
/xlnet/optimization.py
View file @
f5ddc305
File moved
official/
nlp
/xlnet/preprocess_classification_data.py
→
official/
legacy
/xlnet/preprocess_classification_data.py
View file @
f5ddc305
...
...
@@ -26,8 +26,8 @@ import numpy as np
import
tensorflow
as
tf
import
sentencepiece
as
spm
from
official.
nlp
.xlnet
import
classifier_utils
from
official.
nlp
.xlnet
import
preprocess_utils
from
official.
legacy
.xlnet
import
classifier_utils
from
official.
legacy
.xlnet
import
preprocess_utils
flags
.
DEFINE_bool
(
...
...
official/
nlp
/xlnet/preprocess_pretrain_data.py
→
official/
legacy
/xlnet/preprocess_pretrain_data.py
View file @
f5ddc305
...
...
@@ -28,7 +28,7 @@ import numpy as np
import
tensorflow.compat.v1
as
tf
import
sentencepiece
as
spm
from
official.
nlp
.xlnet
import
preprocess_utils
from
official.
legacy
.xlnet
import
preprocess_utils
FLAGS
=
flags
.
FLAGS
...
...
official/
nlp
/xlnet/preprocess_squad_data.py
→
official/
legacy
/xlnet/preprocess_squad_data.py
View file @
f5ddc305
...
...
@@ -25,7 +25,7 @@ from absl import logging
import
tensorflow
as
tf
import
sentencepiece
as
spm
from
official.
nlp
.xlnet
import
squad_utils
from
official.
legacy
.xlnet
import
squad_utils
flags
.
DEFINE_integer
(
"num_proc"
,
default
=
1
,
help
=
"Number of preprocessing processes."
)
...
...
official/
nlp
/xlnet/preprocess_utils.py
→
official/
legacy
/xlnet/preprocess_utils.py
View file @
f5ddc305
File moved
official/
nlp
/xlnet/run_classifier.py
→
official/
legacy
/xlnet/run_classifier.py
View file @
f5ddc305
...
...
@@ -24,12 +24,12 @@ import numpy as np
import
tensorflow
as
tf
# pylint: disable=unused-import
from
official.common
import
distribute_utils
from
official.
nlp
.xlnet
import
common_flags
from
official.
nlp
.xlnet
import
data_utils
from
official.
nlp
.xlnet
import
optimization
from
official.
nlp
.xlnet
import
training_utils
from
official.
nlp
.xlnet
import
xlnet_config
from
official.
nlp
.xlnet
import
xlnet_modeling
as
modeling
from
official.
legacy
.xlnet
import
common_flags
from
official.
legacy
.xlnet
import
data_utils
from
official.
legacy
.xlnet
import
optimization
from
official.
legacy
.xlnet
import
training_utils
from
official.
legacy
.xlnet
import
xlnet_config
from
official.
legacy
.xlnet
import
xlnet_modeling
as
modeling
flags
.
DEFINE_integer
(
"n_class"
,
default
=
2
,
help
=
"Number of classes."
)
flags
.
DEFINE_string
(
...
...
official/
nlp
/xlnet/run_pretrain.py
→
official/
legacy
/xlnet/run_pretrain.py
View file @
f5ddc305
...
...
@@ -24,12 +24,12 @@ from absl import logging
import
tensorflow
as
tf
# pylint: disable=unused-import
from
official.common
import
distribute_utils
from
official.
nlp
.xlnet
import
common_flags
from
official.
nlp
.xlnet
import
data_utils
from
official.
nlp
.xlnet
import
optimization
from
official.
nlp
.xlnet
import
training_utils
from
official.
nlp
.xlnet
import
xlnet_config
from
official.
nlp
.xlnet
import
xlnet_modeling
as
modeling
from
official.
legacy
.xlnet
import
common_flags
from
official.
legacy
.xlnet
import
data_utils
from
official.
legacy
.xlnet
import
optimization
from
official.
legacy
.xlnet
import
training_utils
from
official.
legacy
.xlnet
import
xlnet_config
from
official.
legacy
.xlnet
import
xlnet_modeling
as
modeling
flags
.
DEFINE_integer
(
"num_predict"
,
...
...
official/
nlp
/xlnet/run_squad.py
→
official/
legacy
/xlnet/run_squad.py
View file @
f5ddc305
...
...
@@ -28,13 +28,13 @@ import tensorflow as tf
# pylint: disable=unused-import
import
sentencepiece
as
spm
from
official.common
import
distribute_utils
from
official.
nlp
.xlnet
import
common_flags
from
official.
nlp
.xlnet
import
data_utils
from
official.
nlp
.xlnet
import
optimization
from
official.
nlp
.xlnet
import
squad_utils
from
official.
nlp
.xlnet
import
training_utils
from
official.
nlp
.xlnet
import
xlnet_config
from
official.
nlp
.xlnet
import
xlnet_modeling
as
modeling
from
official.
legacy
.xlnet
import
common_flags
from
official.
legacy
.xlnet
import
data_utils
from
official.
legacy
.xlnet
import
optimization
from
official.
legacy
.xlnet
import
squad_utils
from
official.
legacy
.xlnet
import
training_utils
from
official.
legacy
.xlnet
import
xlnet_config
from
official.
legacy
.xlnet
import
xlnet_modeling
as
modeling
flags
.
DEFINE_string
(
"test_feature_path"
,
default
=
None
,
help
=
"Path to feature of test set."
)
...
...
official/
nlp
/xlnet/squad_utils.py
→
official/
legacy
/xlnet/squad_utils.py
View file @
f5ddc305
...
...
@@ -32,8 +32,8 @@ import numpy as np
import
six
import
tensorflow
as
tf
from
official.
nlp
.xlnet
import
data_utils
from
official.
nlp
.xlnet
import
preprocess_utils
from
official.
legacy
.xlnet
import
data_utils
from
official.
legacy
.xlnet
import
preprocess_utils
SPIECE_UNDERLINE
=
u
"▁"
...
...
official/
nlp
/xlnet/training_utils.py
→
official/
legacy
/xlnet/training_utils.py
View file @
f5ddc305
...
...
@@ -22,7 +22,7 @@ from absl import logging
import
tensorflow
as
tf
from
official.legacy.bert
import
model_training_utils
from
official.
nlp
.xlnet
import
data_utils
from
official.
legacy
.xlnet
import
data_utils
# pytype: disable=attribute-error
# pylint: disable=g-bare-generic,unused-import
...
...
official/
nlp
/xlnet/xlnet_config.py
→
official/
legacy
/xlnet/xlnet_config.py
View file @
f5ddc305
File moved
official/
nlp
/xlnet/xlnet_modeling.py
→
official/
legacy
/xlnet/xlnet_modeling.py
View file @
f5ddc305
...
...
@@ -18,9 +18,8 @@ import copy
import
warnings
import
tensorflow
as
tf
from
official.legacy.xlnet
import
data_utils
from
official.nlp.modeling
import
networks
from
official.nlp.xlnet
import
data_utils
def
gelu
(
x
):
...
...
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