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
40617320
Commit
40617320
authored
Apr 02, 2022
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Apr 02, 2022
Browse files
Internal change
PiperOrigin-RevId: 439095919
parent
7c824435
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
18 deletions
+10
-18
official/nlp/configs/experiment_configs.py
official/nlp/configs/experiment_configs.py
+0
-1
official/projects/teams/train.py
official/projects/teams/train.py
+10
-17
No files found.
official/nlp/configs/experiment_configs.py
View file @
40617320
...
@@ -17,4 +17,3 @@
...
@@ -17,4 +17,3 @@
from
official.nlp.configs
import
finetuning_experiments
from
official.nlp.configs
import
finetuning_experiments
from
official.nlp.configs
import
pretraining_experiments
from
official.nlp.configs
import
pretraining_experiments
from
official.nlp.configs
import
wmt_transformer_experiments
from
official.nlp.configs
import
wmt_transformer_experiments
from
official.projects.teams
import
teams_experiments
official/projects/teams/t
eams_experiments_test
.py
→
official/projects/teams/t
rain
.py
View file @
40617320
...
@@ -12,24 +12,17 @@
...
@@ -12,24 +12,17 @@
# 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.
"""Te
sts for teams_experiment
s."""
"""Te
nsorFlow Model Garden Teams training driver, register Teams config
s."""
from
absl.testing
import
parameterized
# pylint: disable=unused-import
import
tensorflow
as
tf
from
absl
import
app
from
official.common
import
registry_imports
# pylint: disable=unused-import
from
official.core
import
config_definitions
as
cfg
from
official.core
import
exp_factory
class
TeamsExperimentsTest
(
tf
.
test
.
TestCase
,
parameterized
.
TestCase
):
@
parameterized
.
parameters
((
'teams/pretraining'
,))
def
test_teams_experiments
(
self
,
config_name
):
config
=
exp_factory
.
get_exp_config
(
config_name
)
self
.
assertIsInstance
(
config
,
cfg
.
ExperimentConfig
)
self
.
assertIsInstance
(
config
.
task
.
train_data
,
cfg
.
DataConfig
)
from
official.common
import
flags
as
tfm_flags
from
official.nlp
import
tasks
from
official.nlp
import
train
from
official.projects.teams
import
teams_experiments
from
official.projects.teams
import
teams_task
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
tf
.
test
.
main
()
tfm_flags
.
define_flags
()
app
.
run
(
train
.
main
)
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