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
d70eca30
Commit
d70eca30
authored
Apr 14, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Apr 14, 2020
Browse files
Move benchmark_wrappers to benchmark folder.
PiperOrigin-RevId: 306521269
parent
02cf1f87
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
24 additions
and
11 deletions
+24
-11
official/benchmark/benchmark_wrappers.py
official/benchmark/benchmark_wrappers.py
+14
-0
official/benchmark/bert_benchmark.py
official/benchmark/bert_benchmark.py
+1
-1
official/benchmark/bert_squad_benchmark.py
official/benchmark/bert_squad_benchmark.py
+1
-1
official/benchmark/keras_cifar_benchmark.py
official/benchmark/keras_cifar_benchmark.py
+1
-1
official/benchmark/keras_imagenet_benchmark.py
official/benchmark/keras_imagenet_benchmark.py
+1
-1
official/benchmark/ncf_keras_benchmark.py
official/benchmark/ncf_keras_benchmark.py
+1
-2
official/benchmark/resnet_ctl_imagenet_benchmark.py
official/benchmark/resnet_ctl_imagenet_benchmark.py
+1
-1
official/benchmark/retinanet_benchmark.py
official/benchmark/retinanet_benchmark.py
+1
-1
official/benchmark/shakespeare_benchmark.py
official/benchmark/shakespeare_benchmark.py
+1
-1
official/benchmark/transformer_benchmark.py
official/benchmark/transformer_benchmark.py
+1
-1
official/benchmark/xlnet_benchmark.py
official/benchmark/xlnet_benchmark.py
+1
-1
No files found.
official/
utils/testing
/benchmark_wrappers.py
→
official/
benchmark
/benchmark_wrappers.py
View file @
d70eca30
# Lint as: python3
# Lint as: python3
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Utils to annotate and trace benchmarks."""
"""Utils to annotate and trace benchmarks."""
from
__future__
import
absolute_import
from
__future__
import
absolute_import
...
...
official/benchmark/bert_benchmark.py
View file @
d70eca30
...
@@ -34,7 +34,7 @@ from official.benchmark import bert_benchmark_utils as benchmark_utils
...
@@ -34,7 +34,7 @@ from official.benchmark import bert_benchmark_utils as benchmark_utils
from
official.nlp.bert
import
configs
from
official.nlp.bert
import
configs
from
official.nlp.bert
import
run_classifier
from
official.nlp.bert
import
run_classifier
from
official.utils.misc
import
distribution_utils
from
official.utils.misc
import
distribution_utils
from
official.
utils.testing
import
benchmark_wrappers
from
official.
benchmark
import
benchmark_wrappers
# pylint: disable=line-too-long
# pylint: disable=line-too-long
PRETRAINED_CHECKPOINT_PATH
=
'gs://cloud-tpu-checkpoints/bert/keras_bert/uncased_L-24_H-1024_A-16/bert_model.ckpt'
PRETRAINED_CHECKPOINT_PATH
=
'gs://cloud-tpu-checkpoints/bert/keras_bert/uncased_L-24_H-1024_A-16/bert_model.ckpt'
...
...
official/benchmark/bert_squad_benchmark.py
View file @
d70eca30
...
@@ -33,7 +33,7 @@ from official.benchmark import bert_benchmark_utils as benchmark_utils
...
@@ -33,7 +33,7 @@ from official.benchmark import bert_benchmark_utils as benchmark_utils
from
official.nlp.bert
import
run_squad
from
official.nlp.bert
import
run_squad
from
official.utils.misc
import
distribution_utils
from
official.utils.misc
import
distribution_utils
from
official.utils.misc
import
keras_utils
from
official.utils.misc
import
keras_utils
from
official.
utils.testing
import
benchmark_wrappers
from
official.
benchmark
import
benchmark_wrappers
# pylint: disable=line-too-long
# pylint: disable=line-too-long
...
...
official/benchmark/keras_cifar_benchmark.py
View file @
d70eca30
...
@@ -23,7 +23,7 @@ from absl import flags
...
@@ -23,7 +23,7 @@ from absl import flags
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
from
official.benchmark
import
keras_benchmark
from
official.benchmark
import
keras_benchmark
from
official.
utils.testing
import
benchmark_wrappers
from
official.
benchmark
import
benchmark_wrappers
from
official.benchmark.models
import
resnet_cifar_main
from
official.benchmark.models
import
resnet_cifar_main
MIN_TOP_1_ACCURACY
=
0.929
MIN_TOP_1_ACCURACY
=
0.929
...
...
official/benchmark/keras_imagenet_benchmark.py
View file @
d70eca30
...
@@ -26,8 +26,8 @@ from typing import Any, MutableMapping, Optional
...
@@ -26,8 +26,8 @@ from typing import Any, MutableMapping, Optional
from
absl
import
flags
from
absl
import
flags
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
from
official.benchmark
import
benchmark_wrappers
from
official.benchmark
import
keras_benchmark
from
official.benchmark
import
keras_benchmark
from
official.utils.testing
import
benchmark_wrappers
from
official.vision.image_classification
import
classifier_trainer
from
official.vision.image_classification
import
classifier_trainer
from
official.vision.image_classification.resnet
import
resnet_imagenet_main
from
official.vision.image_classification.resnet
import
resnet_imagenet_main
...
...
official/benchmark/ncf_keras_benchmark.py
View file @
d70eca30
...
@@ -24,11 +24,10 @@ from absl import flags
...
@@ -24,11 +24,10 @@ from absl import flags
from
absl
import
logging
from
absl
import
logging
from
absl.testing
import
flagsaver
from
absl.testing
import
flagsaver
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.benchmark
import
benchmark_wrappers
from
official.recommendation
import
ncf_common
from
official.recommendation
import
ncf_common
from
official.recommendation
import
ncf_keras_main
from
official.recommendation
import
ncf_keras_main
from
official.utils.flags
import
core
from
official.utils.flags
import
core
from
official.utils.testing
import
benchmark_wrappers
FLAGS
=
flags
.
FLAGS
FLAGS
=
flags
.
FLAGS
NCF_DATA_DIR_NAME
=
'movielens_data'
NCF_DATA_DIR_NAME
=
'movielens_data'
...
...
official/benchmark/resnet_ctl_imagenet_benchmark.py
View file @
d70eca30
...
@@ -25,7 +25,7 @@ import tensorflow as tf
...
@@ -25,7 +25,7 @@ import tensorflow as tf
from
official.vision.image_classification.resnet
import
common
from
official.vision.image_classification.resnet
import
common
from
official.vision.image_classification.resnet
import
resnet_ctl_imagenet_main
from
official.vision.image_classification.resnet
import
resnet_ctl_imagenet_main
from
official.benchmark.perfzero_benchmark
import
PerfZeroBenchmark
from
official.benchmark.perfzero_benchmark
import
PerfZeroBenchmark
from
official.
utils.testing
import
benchmark_wrappers
from
official.
benchmark
import
benchmark_wrappers
from
official.utils.flags
import
core
as
flags_core
from
official.utils.flags
import
core
as
flags_core
MIN_TOP_1_ACCURACY
=
0.76
MIN_TOP_1_ACCURACY
=
0.76
...
...
official/benchmark/retinanet_benchmark.py
View file @
d70eca30
...
@@ -32,7 +32,7 @@ import tensorflow as tf
...
@@ -32,7 +32,7 @@ import tensorflow as tf
from
official.benchmark
import
bert_benchmark_utils
as
benchmark_utils
from
official.benchmark
import
bert_benchmark_utils
as
benchmark_utils
from
official.utils.flags
import
core
as
flags_core
from
official.utils.flags
import
core
as
flags_core
from
official.
utils.testing
import
benchmark_wrappers
from
official.
benchmark
import
benchmark_wrappers
from
official.vision.detection
import
main
as
detection
from
official.vision.detection
import
main
as
detection
TMP_DIR
=
os
.
getenv
(
'TMPDIR'
)
TMP_DIR
=
os
.
getenv
(
'TMPDIR'
)
...
...
official/benchmark/shakespeare_benchmark.py
View file @
d70eca30
...
@@ -26,7 +26,7 @@ import tensorflow as tf # pylint: disable=g-bad-import-order
...
@@ -26,7 +26,7 @@ import tensorflow as tf # pylint: disable=g-bad-import-order
from
official.benchmark.models.shakespeare
import
shakespeare_main
from
official.benchmark.models.shakespeare
import
shakespeare_main
from
official.utils.flags
import
core
as
flags_core
from
official.utils.flags
import
core
as
flags_core
from
official.utils.misc
import
keras_utils
from
official.utils.misc
import
keras_utils
from
official.
utils.testing
import
benchmark_wrappers
from
official.
benchmark
import
benchmark_wrappers
from
official.benchmark.perfzero_benchmark
import
PerfZeroBenchmark
from
official.benchmark.perfzero_benchmark
import
PerfZeroBenchmark
SHAKESPEARE_TRAIN_DATA
=
'shakespeare/shakespeare.txt'
SHAKESPEARE_TRAIN_DATA
=
'shakespeare/shakespeare.txt'
...
...
official/benchmark/transformer_benchmark.py
View file @
d70eca30
...
@@ -22,11 +22,11 @@ import time
...
@@ -22,11 +22,11 @@ import time
from
absl
import
flags
from
absl
import
flags
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.benchmark
import
benchmark_wrappers
from
official.benchmark.perfzero_benchmark
import
PerfZeroBenchmark
from
official.benchmark.perfzero_benchmark
import
PerfZeroBenchmark
from
official.nlp.transformer
import
misc
from
official.nlp.transformer
import
misc
from
official.nlp.transformer
import
transformer_main
as
transformer_main
from
official.nlp.transformer
import
transformer_main
as
transformer_main
from
official.utils.flags
import
core
as
flags_core
from
official.utils.flags
import
core
as
flags_core
from
official.utils.testing
import
benchmark_wrappers
TRANSFORMER_EN2DE_DATA_DIR_NAME
=
'wmt32k-en2de-official'
TRANSFORMER_EN2DE_DATA_DIR_NAME
=
'wmt32k-en2de-official'
EN2DE_2014_BLEU_DATA_DIR_NAME
=
'newstest2014'
EN2DE_2014_BLEU_DATA_DIR_NAME
=
'newstest2014'
...
...
official/benchmark/xlnet_benchmark.py
View file @
d70eca30
...
@@ -31,7 +31,7 @@ import tensorflow as tf
...
@@ -31,7 +31,7 @@ import tensorflow as tf
from
official.benchmark
import
bert_benchmark_utils
as
benchmark_utils
from
official.benchmark
import
bert_benchmark_utils
as
benchmark_utils
from
official.nlp.xlnet
import
run_classifier
from
official.nlp.xlnet
import
run_classifier
from
official.nlp.xlnet
import
run_squad
from
official.nlp.xlnet
import
run_squad
from
official.
utils.testing
import
benchmark_wrappers
from
official.
benchmark
import
benchmark_wrappers
# pylint: disable=line-too-long
# pylint: disable=line-too-long
...
...
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