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
6c835dd6
Commit
6c835dd6
authored
Jul 08, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Jul 08, 2021
Browse files
Internal change
PiperOrigin-RevId: 383667471
parent
420e8179
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
19 deletions
+2
-19
official/recommendation/ranking/train.py
official/recommendation/ranking/train.py
+2
-2
official/utils/misc/distribution_utils.py
official/utils/misc/distribution_utils.py
+0
-17
No files found.
official/recommendation/ranking/train.py
View file @
6c835dd6
...
@@ -23,12 +23,12 @@ from absl import logging
...
@@ -23,12 +23,12 @@ from absl import logging
import
orbit
import
orbit
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.common
import
distribute_utils
from
official.core
import
base_trainer
from
official.core
import
base_trainer
from
official.core
import
train_lib
from
official.core
import
train_lib
from
official.core
import
train_utils
from
official.core
import
train_utils
from
official.recommendation.ranking
import
common
from
official.recommendation.ranking
import
common
from
official.recommendation.ranking.task
import
RankingTask
from
official.recommendation.ranking.task
import
RankingTask
from
official.utils.misc
import
distribution_utils
from
official.utils.misc
import
keras_utils
from
official.utils.misc
import
keras_utils
FLAGS
=
flags
.
FLAGS
FLAGS
=
flags
.
FLAGS
...
@@ -86,7 +86,7 @@ def main(_) -> None:
...
@@ -86,7 +86,7 @@ def main(_) -> None:
enable_tensorboard
=
params
.
trainer
.
callbacks
.
enable_tensorboard
enable_tensorboard
=
params
.
trainer
.
callbacks
.
enable_tensorboard
strategy
=
distribut
ion
_utils
.
get_distribution_strategy
(
strategy
=
distribut
e
_utils
.
get_distribution_strategy
(
distribution_strategy
=
params
.
runtime
.
distribution_strategy
,
distribution_strategy
=
params
.
runtime
.
distribution_strategy
,
all_reduce_alg
=
params
.
runtime
.
all_reduce_alg
,
all_reduce_alg
=
params
.
runtime
.
all_reduce_alg
,
num_gpus
=
params
.
runtime
.
num_gpus
,
num_gpus
=
params
.
runtime
.
num_gpus
,
...
...
official/utils/misc/distribution_utils.py
deleted
100644 → 0
View file @
420e8179
# Copyright 2021 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.
"""Helper functions for running models in a distributed setting."""
# pylint: disable=wildcard-import
from
official.common.distribute_utils
import
*
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