未验证 提交 23707ef7 编写于 作者: X Xiaoyao Xi 提交者: GitHub

Merge pull request #52 from wangxiao1021/api

fix install
import downloader
from . import downloader
# from mtl_controller import Controller
import controller
import optimizer
import lr_sched
import backbone
import reader
import head
#import controller
from . import optimizer
from . import lr_sched
from . import backbone
from . import reader
from . import head
from trainer import Trainer
from multihead_trainer import MultiHeadTrainer
from .trainer import Trainer
from .multihead_trainer import MultiHeadTrainer
del interface
del task_instance
del default_settings
del utils
#del interface
#del task_instance
#del default_settings
#del utils
from ernie import ERNIE
from bert import BERT
from .ernie import ERNIE
from .bert import BERT
......@@ -5,5 +5,5 @@ import multiprocessing
gpu_dev_count = int(fluid.core.get_cuda_device_count())
cpu_dev_count = int(os.environ.get('CPU_NUM', multiprocessing.cpu_count()))
from reader import yield_pieces, data_feeder, decode_fake
from .reader import yield_pieces, data_feeder, decode_fake
from . import gpu_dev_count, cpu_dev_count
import Queue
try:
import queue
except ImportError:
import Queue as queue
from threading import Thread
dev_count = gpu_dev_count if gpu_dev_count > 0 else cpu_dev_count
......
from _downloader import *
\ No newline at end of file
from ._downloader import *
from cls import Classify
from match import Match
from ner import SequenceLabel
from mrc import MRC
from mlm import MaskLM
from .cls import Classify
from .match import Match
from .ner import SequenceLabel
from .mrc import MRC
from .mlm import MaskLM
from slanted_triangular_schedualer import TriangularSchedualer
from warmup_schedualer import WarmupSchedualer
from .slanted_triangular_schedualer import TriangularSchedualer
from .warmup_schedualer import WarmupSchedualer
from adam import Adam
from .adam import Adam
from cls import ClassifyReader
from match import MatchReader
from seq_label import SequenceLabelReader
from mrc import MRCReader
from mlm import MaskLMReader
from .cls import ClassifyReader
from .match import MatchReader
from .seq_label import SequenceLabelReader
from .mrc import MRCReader
from .mlm import MaskLMReader
import basic_helper
import config_helper
from . import basic_helper
from . import config_helper
......@@ -2,7 +2,7 @@
import os
import json
import yaml
from config_helper import PDConfig
from .config_helper import PDConfig
import logging
from paddle import fluid
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册