Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
d7511194
Unverified
Commit
d7511194
authored
Jan 22, 2022
by
Srihari Humbarwadi
Committed by
GitHub
Jan 22, 2022
Browse files
Merge branch 'tensorflow:master' into panoptic-deeplab-modeling
parents
2ad1ec15
ab8b8012
Changes
1000
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
49 additions
and
50 deletions
+49
-50
official/legacy/bert/export_tfhub.py
official/legacy/bert/export_tfhub.py
+3
-3
official/legacy/bert/export_tfhub_test.py
official/legacy/bert/export_tfhub_test.py
+3
-3
official/legacy/bert/input_pipeline.py
official/legacy/bert/input_pipeline.py
+1
-1
official/legacy/bert/model_saving_utils.py
official/legacy/bert/model_saving_utils.py
+2
-3
official/legacy/bert/model_training_utils.py
official/legacy/bert/model_training_utils.py
+1
-1
official/legacy/bert/model_training_utils_test.py
official/legacy/bert/model_training_utils_test.py
+3
-3
official/legacy/bert/run_classifier.py
official/legacy/bert/run_classifier.py
+6
-6
official/legacy/bert/run_pretraining.py
official/legacy/bert/run_pretraining.py
+6
-6
official/legacy/bert/run_squad.py
official/legacy/bert/run_squad.py
+4
-4
official/legacy/bert/run_squad_helper.py
official/legacy/bert/run_squad_helper.py
+8
-8
official/legacy/bert/serving.py
official/legacy/bert/serving.py
+3
-3
official/legacy/detection/__init__.py
official/legacy/detection/__init__.py
+1
-1
official/legacy/detection/configs/__init__.py
official/legacy/detection/configs/__init__.py
+1
-1
official/legacy/detection/configs/base_config.py
official/legacy/detection/configs/base_config.py
+1
-1
official/legacy/detection/configs/factory.py
official/legacy/detection/configs/factory.py
+1
-1
official/legacy/detection/configs/maskrcnn_config.py
official/legacy/detection/configs/maskrcnn_config.py
+1
-1
official/legacy/detection/configs/olnmask_config.py
official/legacy/detection/configs/olnmask_config.py
+1
-1
official/legacy/detection/configs/retinanet_config.py
official/legacy/detection/configs/retinanet_config.py
+1
-1
official/legacy/detection/configs/shapemask_config.py
official/legacy/detection/configs/shapemask_config.py
+1
-1
official/legacy/detection/dataloader/__init__.py
official/legacy/detection/dataloader/__init__.py
+1
-1
No files found.
Too many changes to show.
To preserve performance only
1000 of 1000+
files are displayed.
Plain diff
Email patch
official/
nlp
/bert/export_tfhub.py
→
official/
legacy
/bert/export_tfhub.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -25,8 +25,8 @@ from absl import app
...
@@ -25,8 +25,8 @@ from absl import app
from
absl
import
flags
from
absl
import
flags
from
absl
import
logging
from
absl
import
logging
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.
nlp
.bert
import
bert_models
from
official.
legacy
.bert
import
bert_models
from
official.
nlp
.bert
import
configs
from
official.
legacy
.bert
import
configs
FLAGS
=
flags
.
FLAGS
FLAGS
=
flags
.
FLAGS
...
...
official/
nlp
/bert/export_tfhub_test.py
→
official/
legacy
/bert/export_tfhub_test.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -21,8 +21,8 @@ import numpy as np
...
@@ -21,8 +21,8 @@ import numpy as np
import
tensorflow
as
tf
import
tensorflow
as
tf
import
tensorflow_hub
as
hub
import
tensorflow_hub
as
hub
from
official.
nlp
.bert
import
configs
from
official.
legacy
.bert
import
configs
from
official.
nlp
.bert
import
export_tfhub
from
official.
legacy
.bert
import
export_tfhub
class
ExportTfhubTest
(
tf
.
test
.
TestCase
,
parameterized
.
TestCase
):
class
ExportTfhubTest
(
tf
.
test
.
TestCase
,
parameterized
.
TestCase
):
...
...
official/
nlp
/bert/input_pipeline.py
→
official/
legacy
/bert/input_pipeline.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
official/
nlp
/bert/model_saving_utils.py
→
official/
legacy
/bert/model_saving_utils.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -15,10 +15,9 @@
...
@@ -15,10 +15,9 @@
"""Utilities to save models."""
"""Utilities to save models."""
import
os
import
os
import
typing
from
absl
import
logging
from
absl
import
logging
import
tensorflow
as
tf
import
tensorflow
as
tf
import
typing
def
export_bert_model
(
model_export_path
:
typing
.
Text
,
def
export_bert_model
(
model_export_path
:
typing
.
Text
,
...
...
official/
nlp
/bert/model_training_utils.py
→
official/
legacy
/bert/model_training_utils.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
official/
nlp
/bert/model_training_utils_test.py
→
official/
legacy
/bert/model_training_utils_test.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -25,8 +25,8 @@ import tensorflow as tf
...
@@ -25,8 +25,8 @@ import tensorflow as tf
from
tensorflow.python.distribute
import
combinations
from
tensorflow.python.distribute
import
combinations
from
tensorflow.python.distribute
import
strategy_combinations
from
tensorflow.python.distribute
import
strategy_combinations
from
official.
nlp
.bert
import
common_flags
from
official.
legacy
.bert
import
common_flags
from
official.
nlp
.bert
import
model_training_utils
from
official.
legacy
.bert
import
model_training_utils
common_flags
.
define_common_bert_flags
()
common_flags
.
define_common_bert_flags
()
...
...
official/
nlp
/bert/run_classifier.py
→
official/
legacy
/bert/run_classifier.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -26,13 +26,13 @@ from absl import logging
...
@@ -26,13 +26,13 @@ from absl import logging
import
gin
import
gin
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.common
import
distribute_utils
from
official.common
import
distribute_utils
from
official.legacy.bert
import
bert_models
from
official.legacy.bert
import
common_flags
from
official.legacy.bert
import
configs
as
bert_configs
from
official.legacy.bert
import
input_pipeline
from
official.legacy.bert
import
model_saving_utils
from
official.modeling
import
performance
from
official.modeling
import
performance
from
official.nlp
import
optimization
from
official.nlp
import
optimization
from
official.nlp.bert
import
bert_models
from
official.nlp.bert
import
common_flags
from
official.nlp.bert
import
configs
as
bert_configs
from
official.nlp.bert
import
input_pipeline
from
official.nlp.bert
import
model_saving_utils
from
official.utils.misc
import
keras_utils
from
official.utils.misc
import
keras_utils
flags
.
DEFINE_enum
(
flags
.
DEFINE_enum
(
...
...
official/
nlp
/bert/run_pretraining.py
→
official/
legacy
/bert/run_pretraining.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -21,13 +21,13 @@ from absl import logging
...
@@ -21,13 +21,13 @@ from absl import logging
import
gin
import
gin
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.common
import
distribute_utils
from
official.common
import
distribute_utils
from
official.legacy.bert
import
bert_models
from
official.legacy.bert
import
common_flags
from
official.legacy.bert
import
configs
from
official.legacy.bert
import
input_pipeline
from
official.legacy.bert
import
model_training_utils
from
official.modeling
import
performance
from
official.modeling
import
performance
from
official.nlp
import
optimization
from
official.nlp
import
optimization
from
official.nlp.bert
import
bert_models
from
official.nlp.bert
import
common_flags
from
official.nlp.bert
import
configs
from
official.nlp.bert
import
input_pipeline
from
official.nlp.bert
import
model_training_utils
flags
.
DEFINE_string
(
'input_files'
,
None
,
flags
.
DEFINE_string
(
'input_files'
,
None
,
...
...
official/
nlp
/bert/run_squad.py
→
official/
legacy
/bert/run_squad.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -25,10 +25,10 @@ from absl import logging
...
@@ -25,10 +25,10 @@ from absl import logging
import
gin
import
gin
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.common
import
distribute_utils
from
official.common
import
distribute_utils
from
official.nlp.bert
import
configs
as
bert_configs
from
official.legacy.bert
import
configs
as
bert_configs
from
official.nlp.bert
import
run_squad_helper
from
official.legacy.bert
import
run_squad_helper
from
official.nlp.bert
import
tokenization
from
official.nlp.data
import
squad_lib
as
squad_lib_wp
from
official.nlp.data
import
squad_lib
as
squad_lib_wp
from
official.nlp.tools
import
tokenization
from
official.utils.misc
import
keras_utils
from
official.utils.misc
import
keras_utils
...
...
official/
nlp
/bert/run_squad_helper.py
→
official/
legacy
/bert/run_squad_helper.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -21,16 +21,16 @@ import os
...
@@ -21,16 +21,16 @@ import os
from
absl
import
flags
from
absl
import
flags
from
absl
import
logging
from
absl
import
logging
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.legacy.bert
import
bert_models
from
official.legacy.bert
import
common_flags
from
official.legacy.bert
import
input_pipeline
from
official.legacy.bert
import
model_saving_utils
from
official.legacy.bert
import
model_training_utils
from
official.modeling
import
performance
from
official.modeling
import
performance
from
official.nlp
import
optimization
from
official.nlp
import
optimization
from
official.nlp.bert
import
bert_models
from
official.nlp.bert
import
common_flags
from
official.nlp.bert
import
input_pipeline
from
official.nlp.bert
import
model_saving_utils
from
official.nlp.bert
import
model_training_utils
from
official.nlp.bert
import
squad_evaluate_v1_1
from
official.nlp.bert
import
squad_evaluate_v2_0
from
official.nlp.data
import
squad_lib_sp
from
official.nlp.data
import
squad_lib_sp
from
official.nlp.tools
import
squad_evaluate_v1_1
from
official.nlp.tools
import
squad_evaluate_v2_0
from
official.utils.misc
import
keras_utils
from
official.utils.misc
import
keras_utils
...
...
official/
nlp
/bert/serving.py
→
official/
legacy
/bert/serving.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -18,8 +18,8 @@ from absl import app
...
@@ -18,8 +18,8 @@ from absl import app
from
absl
import
flags
from
absl
import
flags
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.
nlp
.bert
import
bert_models
from
official.
legacy
.bert
import
bert_models
from
official.
nlp
.bert
import
configs
from
official.
legacy
.bert
import
configs
flags
.
DEFINE_integer
(
flags
.
DEFINE_integer
(
"sequence_length"
,
None
,
"Sequence length to parse the tf.Example. If "
"sequence_length"
,
None
,
"Sequence length to parse the tf.Example. If "
...
...
official/legacy/detection/__init__.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/configs/__init__.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/configs/base_config.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/configs/factory.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/configs/maskrcnn_config.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/configs/olnmask_config.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/configs/retinanet_config.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/configs/shapemask_config.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/dataloader/__init__.py
View file @
d7511194
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
Prev
1
2
3
4
5
6
7
…
50
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