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
7786b741
Commit
7786b741
authored
Dec 28, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Dec 28, 2020
Browse files
Internal change
PiperOrigin-RevId: 349347368
parent
e2440966
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
34 additions
and
21 deletions
+34
-21
official/common/__init__.py
official/common/__init__.py
+14
-0
official/common/distribute_utils.py
official/common/distribute_utils.py
+2
-2
official/common/distribute_utils_test.py
official/common/distribute_utils_test.py
+2
-2
official/common/flags.py
official/common/flags.py
+1
-2
official/common/registry_imports.py
official/common/registry_imports.py
+1
-1
orbit/__init__.py
orbit/__init__.py
+1
-1
orbit/controller.py
orbit/controller.py
+1
-1
orbit/controller_test.py
orbit/controller_test.py
+1
-1
orbit/runner.py
orbit/runner.py
+1
-1
orbit/standard_runner.py
orbit/standard_runner.py
+1
-1
orbit/standard_runner_test.py
orbit/standard_runner_test.py
+1
-1
orbit/utils/__init__.py
orbit/utils/__init__.py
+1
-1
orbit/utils/common.py
orbit/utils/common.py
+1
-1
orbit/utils/common_test.py
orbit/utils/common_test.py
+1
-1
orbit/utils/epoch_helper.py
orbit/utils/epoch_helper.py
+1
-1
orbit/utils/loop_fns.py
orbit/utils/loop_fns.py
+1
-1
orbit/utils/summary_manager.py
orbit/utils/summary_manager.py
+1
-1
orbit/utils/tpu_summaries.py
orbit/utils/tpu_summaries.py
+1
-1
orbit/utils/tpu_summaries_test.py
orbit/utils/tpu_summaries_test.py
+1
-1
No files found.
official/common/__init__.py
View file @
7786b741
# Copyright 2020 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.
official/common/distribute_utils.py
View file @
7786b741
# Copyright 20
18
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
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.
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Helper functions for running models in a distributed setting."""
"""Helper functions for running models in a distributed setting."""
import
json
import
json
...
...
official/common/distribute_utils_test.py
View file @
7786b741
# Copyright 20
18
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
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.
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
""" Tests for distribution util functions."""
""" Tests for distribution util functions."""
import
tensorflow
as
tf
import
tensorflow
as
tf
...
...
official/common/flags.py
View file @
7786b741
# Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
# Copyright 2020 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");
...
@@ -12,7 +11,7 @@
...
@@ -12,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""The central place to define flags."""
"""The central place to define flags."""
from
absl
import
flags
from
absl
import
flags
...
...
official/common/registry_imports.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""All necessary imports for registration."""
"""All necessary imports for registration."""
# pylint: disable=unused-import
# pylint: disable=unused-import
from
official.nlp
import
tasks
from
official.nlp
import
tasks
...
...
orbit/__init__.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Defines exported symbols for the `orbit` package."""
"""Defines exported symbols for the `orbit` package."""
from
orbit
import
utils
from
orbit
import
utils
...
...
orbit/controller.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Provides a `Controller` class for managing the outer training loop."""
"""Provides a `Controller` class for managing the outer training loop."""
import
pprint
import
pprint
...
...
orbit/controller_test.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Tests for orbit.controller."""
"""Tests for orbit.controller."""
import
os
import
os
...
...
orbit/runner.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Provides AbstractTrainer/Evaluator base classes, defining train/eval APIs."""
"""Provides AbstractTrainer/Evaluator base classes, defining train/eval APIs."""
import
abc
import
abc
...
...
orbit/standard_runner.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""AbstractTrainer/Evaluator subclasses with added functionality.
"""AbstractTrainer/Evaluator subclasses with added functionality.
The classes in this module provide some additional structure to the bare
The classes in this module provide some additional structure to the bare
...
...
orbit/standard_runner_test.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Tests for orbit.standard_runner."""
"""Tests for orbit.standard_runner."""
from
absl.testing
import
parameterized
from
absl.testing
import
parameterized
...
...
orbit/utils/__init__.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Defines exported symbols for the `orbit.utils` package."""
"""Defines exported symbols for the `orbit.utils` package."""
from
orbit.utils.common
import
create_global_step
from
orbit.utils.common
import
create_global_step
...
...
orbit/utils/common.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Some layered modules/functions to help users writing custom training loop."""
"""Some layered modules/functions to help users writing custom training loop."""
import
inspect
import
inspect
...
...
orbit/utils/common_test.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Tests for orbit.utils.common."""
"""Tests for orbit.utils.common."""
from
orbit.utils
import
common
from
orbit.utils
import
common
...
...
orbit/utils/epoch_helper.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Provides a utility class for training in epochs."""
"""Provides a utility class for training in epochs."""
import
tensorflow
as
tf
import
tensorflow
as
tf
...
...
orbit/utils/loop_fns.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Utilities for creating loop functions."""
"""Utilities for creating loop functions."""
from
orbit.utils
import
tpu_summaries
from
orbit.utils
import
tpu_summaries
...
...
orbit/utils/summary_manager.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Provides a utility class for managing summary writing."""
"""Provides a utility class for managing summary writing."""
import
os
import
os
...
...
orbit/utils/tpu_summaries.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Contains utilities for TPU summary optimization."""
"""Contains utilities for TPU summary optimization."""
import
contextlib
import
contextlib
...
...
orbit/utils/tpu_summaries_test.py
View file @
7786b741
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# ==============================================================================
"""Tests for orbit.utils.tpu_summaries."""
"""Tests for orbit.utils.tpu_summaries."""
import
functools
import
functools
...
...
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