train.py 1 KB
Newer Older
A. Unique TensorFlower's avatar
A. Unique TensorFlower committed
1
# Copyright 2022 The TensorFlow Authors. All Rights Reserved.
Jialu Liu's avatar
Jialu Liu committed
2
3
4
5
6
7
8
9
10
11
12
13
14
#
# 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.

Hongkun Yu's avatar
Hongkun Yu committed
15
"""TensorFlow Model Garden Teams training driver, register Teams configs."""
Jialu Liu's avatar
Jialu Liu committed
16

Hongkun Yu's avatar
Hongkun Yu committed
17
18
# pylint: disable=unused-import
from absl import app
Jialu Liu's avatar
Jialu Liu committed
19

Hongkun Yu's avatar
Hongkun Yu committed
20
21
22
23
24
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
Jialu Liu's avatar
Jialu Liu committed
25
26

if __name__ == '__main__':
Hongkun Yu's avatar
Hongkun Yu committed
27
28
  tfm_flags.define_flags()
  app.run(train.main)