__init__.py 1.7 KB
Newer Older
W
wuzewu 已提交
1
# Copyright (c) 2019  PaddlePaddle Authors. All Rights Reserved.
Z
Zeyu Chen 已提交
2 3 4 5 6 7 8 9 10 11 12 13
#
# 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.
14 15

#coding:utf-8
Z
Zeyu Chen 已提交
16

17 18
import six

W
wuzewu 已提交
19
from . import module
Z
Zeyu Chen 已提交
20
from . import common
W
wuzewu 已提交
21
from . import io
22
from . import dataset
Z
Zeyu Chen 已提交
23
from . import finetune
Z
Zeyu Chen 已提交
24
from . import reader
Z
Zeyu Chen 已提交
25 26 27 28 29 30 31 32 33

from .common.dir import USER_HOME
from .common.dir import HUB_HOME
from .common.dir import MODULE_HOME
from .common.dir import CACHE_HOME
from .common.logger import logger
from .common.paddle_helper import connect_program
from .common.hub_server import default_hub_server

W
wuzewu 已提交
34
from .module.module import Module, create_module
W
wuzewu 已提交
35
from .module.base_processor import BaseProcessor
W
wuzewu 已提交
36
from .module.signature import Signature, create_signature
W
wuzewu 已提交
37
from .module.manager import default_module_manager
Z
Zeyu Chen 已提交
38

W
wuzewu 已提交
39
from .io.type import DataType
Z
Zeyu Chen 已提交
40

Z
Zeyu Chen 已提交
41
from .finetune.task import Task
42 43 44
from .finetune.task import create_seq_label_task
from .finetune.task import create_text_cls_task
from .finetune.task import create_img_cls_task
Z
Zeyu Chen 已提交
45
from .finetune.finetune import finetune_and_eval
46
from .finetune.config import RunConfig
47
from .finetune.strategy import AdamWeightDecayStrategy
Z
Zeyu Chen 已提交
48
from .finetune.strategy import DefaultStrategy
S
Steffy-zxf 已提交
49
from .finetune.strategy import DefaultFinetuneStrategy
50 51 52 53

if six.PY2:
    import sys
    reload(sys)
Z
Zeyu Chen 已提交
54
    sys.setdefaultencoding("UTF-8")