SYMBOL INDEX (406 symbols across 53 files) FILE: examples/classification/download.py function download (line 13) | def download(src, url): FILE: examples/classification/evaluate.py function accuracy (line 6) | def accuracy(preds, labels): function pre_recall_f1 (line 11) | def pre_recall_f1(preds, labels): function res_evaluate (line 26) | def res_evaluate(res_dir="./outputs/predict/predictions.json", eval_phas... FILE: examples/matching/download.py function download (line 11) | def download(src, url): FILE: examples/matching/evaluate.py function accuracy (line 6) | def accuracy(preds, labels): function pre_recall_f1 (line 11) | def pre_recall_f1(preds, labels): function res_evaluate (line 26) | def res_evaluate(res_dir="./outputs/predict/predictions.json", eval_phas... FILE: examples/mrc/download.py function download (line 13) | def download(src, url): FILE: examples/mrc/evaluate.py function mixed_segmentation (line 39) | def mixed_segmentation(in_str, rm_punc=False): function remove_punctuation (line 69) | def remove_punctuation(in_str): function find_lcs (line 86) | def find_lcs(s1, s2): function evaluate (line 100) | def evaluate(ground_truth_file, prediction_file): function calc_f1_score (line 129) | def calc_f1_score(answers, prediction): function calc_em_score (line 145) | def calc_em_score(answers, prediction): function eval_file (line 156) | def eval_file(dataset_file, prediction_file): FILE: examples/multi-task/download.py function download (line 13) | def download(src, url): FILE: examples/multi-task/evaluate_intent.py function accuracy (line 6) | def accuracy(preds, labels): function pre_recall_f1 (line 11) | def pre_recall_f1(preds, labels): function res_evaluate (line 26) | def res_evaluate(res_dir="./outputs/predict-intent/predictions.json", ev... FILE: examples/multi-task/evaluate_slot.py function load_label_map (line 6) | def load_label_map(map_dir="./data/atis/atis_slot/label_map.json"): function cal_chunk (line 14) | def cal_chunk(pred_label, refer_label): function res_evaluate (line 41) | def res_evaluate(res_dir="./outputs/predict-slot/predictions.json", data... FILE: examples/predict/download.py function download (line 13) | def download(src, url): FILE: examples/predict/evaluate.py function accuracy (line 6) | def accuracy(preds, labels): function pre_recall_f1 (line 11) | def pre_recall_f1(preds, labels): function res_evaluate (line 26) | def res_evaluate(res_dir="./outputs/predict/predictions.json", eval_phas... FILE: examples/tagging/download.py function download (line 13) | def download(src, url): FILE: examples/tagging/evaluate.py function load_label_map (line 6) | def load_label_map(map_dir="./data/label_map.json"): function cal_chunk (line 14) | def cal_chunk(pred_label, refer_label): function res_evaluate (line 41) | def res_evaluate(res_dir="./outputs/predict/predictions.json", data_dir=... FILE: examples/train_with_eval/download.py function download (line 13) | def download(src, url): FILE: examples/train_with_eval/evaluate.py function accuracy (line 6) | def accuracy(preds, labels): function pre_recall_f1 (line 11) | def pre_recall_f1(preds, labels): function res_evaluate (line 26) | def res_evaluate(res_dir="./outputs/predict/predictions.json", eval_phas... FILE: paddlepalm/_downloader.py function _download (line 61) | def _download(item, scope, path, silent=False, convert=False): function _convert (line 111) | def _convert(path, silent=False): function download (line 131) | def download(item, scope='all', path='.'): function _ls (line 154) | def _ls(item, scope, l = 10): function ls (line 164) | def ls(item='all', scope='all'): FILE: paddlepalm/backbone/base_backbone.py class Backbone (line 17) | class Backbone(object): method __init__ (line 20) | def __init__(self, phase): method inputs_attr (line 30) | def inputs_attr(self): method outputs_attr (line 45) | def outputs_attr(self): method build (line 57) | def build(self, inputs): FILE: paddlepalm/backbone/bert.py class BERT (line 29) | class BERT(Backbone): method __init__ (line 32) | def __init__(self, hidden_size, num_hidden_layers, num_attention_heads... method from_config (line 59) | def from_config(self, config, phase='train'): method inputs_attr (line 98) | def inputs_attr(self): method outputs_attr (line 113) | def outputs_attr(self): method build (line 126) | def build(self, inputs, scope_name=""): method postprocess (line 238) | def postprocess(self, rt_outputs): class Model (line 242) | class Model(BERT): method __init__ (line 244) | def __init__(self, config, phase): FILE: paddlepalm/backbone/ernie.py class ERNIE (line 30) | class ERNIE(Backbone): method __init__ (line 32) | def __init__(self, hidden_size, num_hidden_layers, num_attention_heads... method from_config (line 63) | def from_config(cls, config, phase='train'): method inputs_attr (line 107) | def inputs_attr(self): method outputs_attr (line 124) | def outputs_attr(self): method build (line 137) | def build(self, inputs, scope_name=""): method postprocess (line 260) | def postprocess(self, rt_outputs): class Model (line 265) | class Model(ERNIE): method __init__ (line 267) | def __init__(self, config, phase): FILE: paddlepalm/backbone/utils/transformer.py function layer_norm (line 28) | def layer_norm(x, begin_norm_axis=1, epsilon=1e-6, param_attr=None, bias... function multi_head_attention (line 56) | def multi_head_attention(queries, function positionwise_feed_forward (line 192) | def positionwise_feed_forward(x, function pre_post_process_layer (line 227) | def pre_post_process_layer(prev_out, out, process_cmd, dropout_rate=0., function encoder_layer (line 267) | def encoder_layer(enc_input, function encoder (line 330) | def encoder(enc_input, FILE: paddlepalm/distribute/reader.py function yield_pieces (line 11) | def yield_pieces(data, distribute_strategy, batch_size): function data_feeder (line 63) | def data_feeder(reader, postprocess_fn=None, prefetch_steps=2, phase='tr... function decode_fake (line 118) | def decode_fake(nums, mask, bs): FILE: paddlepalm/head/base_head.py class Head (line 20) | class Head(object): method __init__ (line 22) | def __init__(self, phase='train'): method inputs_attrs (line 34) | def inputs_attrs(self): method outputs_attr (line 47) | def outputs_attr(self): method epoch_inputs_attrs (line 62) | def epoch_inputs_attrs(self): method build (line 76) | def build(self, inputs, scope_name=""): method batch_postprocess (line 88) | def batch_postprocess(self, rt_outputs): method reset (line 106) | def reset(self): method get_results (line 110) | def get_results(self): method epoch_postprocess (line 114) | def epoch_postprocess(self, post_inputs=None, output_dir=None): FILE: paddlepalm/head/cls.py class Classify (line 24) | class Classify(Head): method __init__ (line 28) | def __init__(self, num_classes, input_dim, dropout_prob=0.0, \ method inputs_attrs (line 43) | def inputs_attrs(self): method outputs_attrs (line 51) | def outputs_attrs(self): method build (line 59) | def build(self, inputs, scope_name=''): method batch_postprocess (line 86) | def batch_postprocess(self, rt_outputs): method epoch_postprocess (line 94) | def epoch_postprocess(self, post_inputs, output_dir=None): FILE: paddlepalm/head/match.py function computeHingeLoss (line 25) | def computeHingeLoss(pos, neg, margin): class Match (line 36) | class Match(Head): method __init__ (line 41) | def __init__(self, num_classes, input_dim, dropout_prob=0.0, param_ini... method inputs_attrs (line 67) | def inputs_attrs(self): method outputs_attrs (line 79) | def outputs_attrs(self): method build (line 89) | def build(self, inputs, scope_name=""): method batch_postprocess (line 162) | def batch_postprocess(self, rt_outputs): method reset (line 172) | def reset(self): method epoch_postprocess (line 176) | def epoch_postprocess(self, post_inputs, output_dir=None): FILE: paddlepalm/head/mlm.py class MaskLM (line 23) | class MaskLM(Head): method __init__ (line 27) | def __init__(self, input_dim, vocab_size, hidden_act, dropout_prob=0.0, \ method inputs_attrs (line 40) | def inputs_attrs(self): method outputs_attrs (line 53) | def outputs_attrs(self): method build (line 59) | def build(self, inputs, scope_name=""): method batch_postprocess (line 121) | def batch_postprocess(self, rt_outputs): method epoch_postprocess (line 128) | def epoch_postprocess(self, post_inputs, output_dir=None): FILE: paddlepalm/head/mrc.py class MRC (line 30) | class MRC(Head): method __init__ (line 35) | def __init__(self, max_query_len, input_dim, pred_output_path=None, ve... method inputs_attrs (line 54) | def inputs_attrs(self): method epoch_inputs_attrs (line 65) | def epoch_inputs_attrs(self): method outputs_attr (line 71) | def outputs_attr(self): method build (line 80) | def build(self, inputs, scope_name=""): method batch_postprocess (line 131) | def batch_postprocess(self, rt_outputs): method epoch_postprocess (line 153) | def epoch_postprocess(self, post_inputs, output_dir=None): function _write_predictions (line 174) | def _write_predictions(all_examples, all_features, all_results, n_best_s... function _get_final_text (line 377) | def _get_final_text(pred_text, orig_text, do_lower_case, verbose): function _get_best_indexes (line 472) | def _get_best_indexes(logits, n_best_size): function _compute_softmax (line 485) | def _compute_softmax(scores): FILE: paddlepalm/head/ner.py class SequenceLabel (line 23) | class SequenceLabel(Head): method __init__ (line 27) | def __init__(self, num_classes, input_dim, dropout_prob=0.0, learning_... method inputs_attrs (line 50) | def inputs_attrs(self): method outputs_attrs (line 59) | def outputs_attrs(self): method build (line 65) | def build(self, inputs, scope_name=''): method batch_postprocess (line 112) | def batch_postprocess(self, rt_outputs): method epoch_postprocess (line 118) | def epoch_postprocess(self, post_inputs, output_dir=None): FILE: paddlepalm/lr_sched/base_schedualer.py class Schedualer (line 2) | class Schedualer(): method __init__ (line 4) | def __init__(self): method _set_prog (line 7) | def _set_prog(self, prog): method _build (line 10) | def _build(self, learning_rate): FILE: paddlepalm/lr_sched/slanted_triangular_schedualer.py class TriangularSchedualer (line 4) | class TriangularSchedualer(Schedualer): method __init__ (line 8) | def __init__(self, warmup_steps, num_train_steps): method _build (line 22) | def _build(self, learning_rate): FILE: paddlepalm/lr_sched/warmup_schedualer.py function WarmupSchedualer (line 5) | def WarmupSchedualer(Schedualer): FILE: paddlepalm/multihead_trainer.py class MultiHeadTrainer (line 15) | class MultiHeadTrainer(Trainer): method __init__ (line 20) | def __init__(self, trainers): method build_forward (line 58) | def build_forward(self): method build_predict_forward (line 100) | def build_predict_forward(self): method merge_inference_readers (line 132) | def merge_inference_readers(self, readers): method fit_readers_with_mixratio (line 192) | def fit_readers_with_mixratio(self, readers, sampling_reference, num_e... method _check_finish (line 280) | def _check_finish(self, task_name, silent=False): method train (line 290) | def train(self, print_steps=5): method train_one_step (line 332) | def train_one_step(self, batch): method predict_one_batch (line 355) | def predict_one_batch(self, task_name, batch): method predict (line 366) | def predict(self, output_dir=None, print_steps=1000): method overall_train_steps (line 372) | def overall_train_steps(self): FILE: paddlepalm/optimizer/adam.py class Adam (line 25) | class Adam(Optimizer): method __init__ (line 27) | def __init__(self, loss_var, lr, lr_schedualer=None): method _build (line 35) | def _build(self, grad_clip=None): method get_cur_learning_rate (line 52) | def get_cur_learning_rate(self): FILE: paddlepalm/optimizer/base_optimizer.py class Optimizer (line 2) | class Optimizer(object): method __init__ (line 4) | def __init__(self, loss_var, lr, lr_schedualer=None): method _build (line 8) | def _build(self, grad_clip=None): method _set_prog (line 11) | def _set_prog(self, prog, init_prog): method get_cur_learning_rate (line 17) | def get_cur_learning_rate(self): FILE: paddlepalm/reader/base_reader.py class Reader (line 17) | class Reader(object): method __init__ (line 20) | def __init__(self, phase='train'): method create_register (line 34) | def create_register(self): method clone (line 37) | def clone(self, phase='train'): method require_attr (line 46) | def require_attr(self, attr_name): method register_with (line 54) | def register_with(self, backbone): method get_registered_backbone (line 64) | def get_registered_backbone(self): method _get_registed_attrs (line 68) | def _get_registed_attrs(self, attrs): method load_data (line 76) | def load_data(self, input_file, batch_size, num_epochs=None, \ method outputs_attr (line 92) | def outputs_attr(self): method _iterator (line 107) | def _iterator(self): method get_epoch_outputs (line 114) | def get_epoch_outputs(self): method num_examples (line 119) | def num_examples(self): method num_epochs (line 125) | def num_epochs(self): FILE: paddlepalm/reader/cls.py class ClassifyReader (line 20) | class ClassifyReader(Reader): method __init__ (line 39) | def __init__(self, vocab_path, max_len, tokenizer='wordpiece', \ method outputs_attr (line 82) | def outputs_attr(self): method load_data (line 94) | def load_data(self, input_file, batch_size, num_epochs=None, \ method _iterator (line 113) | def _iterator(self): method get_epoch_outputs (line 125) | def get_epoch_outputs(self): method num_examples (line 130) | def num_examples(self): method num_epochs (line 134) | def num_epochs(self): FILE: paddlepalm/reader/match.py class MatchReader (line 20) | class MatchReader(Reader): method __init__ (line 47) | def __init__(self, vocab_path, max_len, tokenizer='wordpiece', lang='e... method outputs_attr (line 100) | def outputs_attr(self): method load_data (line 116) | def load_data(self, input_file, batch_size, num_epochs=None, \ method _iterator (line 135) | def _iterator(self): method num_examples (line 154) | def num_examples(self): method num_epochs (line 158) | def num_epochs(self): FILE: paddlepalm/reader/mlm.py class MaskLMReader (line 20) | class MaskLMReader(Reader): method __init__ (line 22) | def __init__(self, vocab_path, max_len, tokenizer='wordpiece', \ method outputs_attr (line 54) | def outputs_attr(self): method load_data (line 67) | def load_data(self, input_file, batch_size, num_epochs=None, \ method _iterator (line 76) | def _iterator(self): method get_epoch_outputs (line 89) | def get_epoch_outputs(self): method num_examples (line 94) | def num_examples(self): method num_epochs (line 98) | def num_epochs(self): FILE: paddlepalm/reader/mrc.py class MRCReader (line 20) | class MRCReader(Reader): method __init__ (line 57) | def __init__(self, vocab_path, max_len, max_query_len, doc_stride, \ method outputs_attr (line 112) | def outputs_attr(self): method epoch_outputs_attr (line 125) | def epoch_outputs_attr(self): method load_data (line 130) | def load_data(self, input_file, batch_size, num_epochs=None, file_form... method _iterator (line 147) | def _iterator(self): method get_epoch_outputs (line 166) | def get_epoch_outputs(self): method num_examples (line 172) | def num_examples(self): method num_epochs (line 176) | def num_epochs(self): FILE: paddlepalm/reader/seq_label.py class SequenceLabelReader (line 19) | class SequenceLabelReader(Reader): method __init__ (line 24) | def __init__(self, vocab_path, max_len, label_map_config, tokenizer='w... method outputs_attr (line 58) | def outputs_attr(self): method load_data (line 69) | def load_data(self, input_file, batch_size, num_epochs=None, \ method _iterator (line 88) | def _iterator(self): method get_epoch_outputs (line 100) | def get_epoch_outputs(self): method num_examples (line 105) | def num_examples(self): method num_epochs (line 109) | def num_epochs(self): FILE: paddlepalm/reader/utils/batching4bert.py function mask (line 22) | def mask(batch_tokens, total_token_num, vocab_size, CLS=1, SEP=2, MASK=3): function prepare_batch_data (line 75) | def prepare_batch_data(insts, function pad_batch_data (line 138) | def pad_batch_data(insts, FILE: paddlepalm/reader/utils/batching4ernie.py function mask (line 26) | def mask(batch_tokens, function pad_batch_data (line 121) | def pad_batch_data(insts, FILE: paddlepalm/reader/utils/mlm_batching.py function mask (line 22) | def mask(batch_tokens, total_token_num, vocab_size, CLS=1, SEP=2, MASK=3... function prepare_batch_data (line 94) | def prepare_batch_data(insts, function pad_batch_data (line 152) | def pad_batch_data(insts, FILE: paddlepalm/reader/utils/mrqa_helper.py class MRQAExample (line 16) | class MRQAExample(object): method __init__ (line 22) | def __init__(self, method __str__ (line 38) | def __str__(self): method __repr__ (line 41) | def __repr__(self): class MRQAFeature (line 56) | class MRQAFeature(object): method __init__ (line 59) | def __init__(self, FILE: paddlepalm/reader/utils/reader4ernie.py function csv_reader (line 52) | def csv_reader(fd, delimiter='\t'): class Reader (line 59) | class Reader(object): method __init__ (line 60) | def __init__(self, method get_train_progress (line 106) | def get_train_progress(self): method _read_tsv (line 110) | def _read_tsv(self, input_file, quotechar=None): method _truncate_seq_pair (line 123) | def _truncate_seq_pair(self, tokens_a, tokens_b, max_length): method _convert_example_to_record (line 140) | def _convert_example_to_record(self, example, max_seq_length, tokenizer): method _prepare_batch_data (line 278) | def _prepare_batch_data(self, examples, batch_size, phase='train'): method get_num_examples (line 308) | def get_num_examples(self, input_file=None, phase='train'): method data_generator (line 316) | def data_generator(self, class MaskLMReader (line 357) | class MaskLMReader(Reader): method _convert_example_to_record (line 359) | def _convert_example_to_record(self, example, max_seq_length, tokenizer): method batch_reader (line 426) | def batch_reader(self, examples, batch_size, in_tokens, phase): method data_generator (line 445) | def data_generator(self, class ClassifyReader (line 497) | class ClassifyReader(Reader): method _read_tsv (line 498) | def _read_tsv(self, input_file, quotechar=None): method _pad_batch_records (line 519) | def _pad_batch_records(self, batch_records): class SequenceLabelReader (line 580) | class SequenceLabelReader(Reader): method _pad_batch_records (line 581) | def _pad_batch_records(self, batch_records): method _reseg_token_label (line 608) | def _reseg_token_label(self, tokens, labels, tokenizer): method _convert_example_to_record (line 626) | def _convert_example_to_record(self, example, max_seq_length, tokenizer): class ExtractEmbeddingReader (line 658) | class ExtractEmbeddingReader(Reader): method _pad_batch_records (line 659) | def _pad_batch_records(self, batch_records): class MRCReader (line 685) | class MRCReader(Reader): method __init__ (line 686) | def __init__(self, method _read_json (line 733) | def _read_json(self, input_file, is_training): method _improve_answer_span (line 789) | def _improve_answer_span(self, doc_tokens, input_start, input_end, method _check_is_max_context (line 801) | def _check_is_max_context(self, doc_spans, cur_span_index, position): method _convert_example_to_feature (line 820) | def _convert_example_to_feature(self, examples, max_seq_length, tokeni... method _prepare_batch_data (line 933) | def _prepare_batch_data(self, records, batch_size, phase=None): method _pad_batch_records (line 966) | def _pad_batch_records(self, batch_records, is_training): method get_num_examples (line 1010) | def get_num_examples(self, phase): method get_features (line 1013) | def get_features(self, phase): method get_examples (line 1016) | def get_examples(self, phase): method data_generator (line 1019) | def data_generator(self, FILE: paddlepalm/tokenizer/bert_tokenizer.py function convert_to_unicode (line 26) | def convert_to_unicode(text): function printable_text (line 46) | def printable_text(text): function load_vocab (line 69) | def load_vocab(vocab_file): function convert_by_vocab (line 84) | def convert_by_vocab(vocab, items): function convert_tokens_to_ids (line 92) | def convert_tokens_to_ids(vocab, tokens): function convert_ids_to_tokens (line 96) | def convert_ids_to_tokens(inv_vocab, ids): function whitespace_tokenize (line 100) | def whitespace_tokenize(text): class FullTokenizer (line 109) | class FullTokenizer(object): method __init__ (line 112) | def __init__(self, vocab_file, do_lower_case=True): method tokenize (line 118) | def tokenize(self, text): method convert_tokens_to_ids (line 126) | def convert_tokens_to_ids(self, tokens): method convert_ids_to_tokens (line 129) | def convert_ids_to_tokens(self, ids): class CharTokenizer (line 133) | class CharTokenizer(object): method __init__ (line 136) | def __init__(self, vocab_file, do_lower_case=True): method tokenize (line 141) | def tokenize(self, text): method convert_tokens_to_ids (line 149) | def convert_tokens_to_ids(self, tokens): method convert_ids_to_tokens (line 152) | def convert_ids_to_tokens(self, ids): class BasicTokenizer (line 156) | class BasicTokenizer(object): method __init__ (line 159) | def __init__(self, do_lower_case=True): method tokenize (line 168) | def tokenize(self, text): method _run_strip_accents (line 195) | def _run_strip_accents(self, text): method _run_split_on_punc (line 206) | def _run_split_on_punc(self, text): method _tokenize_chinese_chars (line 226) | def _tokenize_chinese_chars(self, text): method _is_chinese_char (line 239) | def _is_chinese_char(self, cp): method _clean_text (line 261) | def _clean_text(self, text): class WordpieceTokenizer (line 275) | class WordpieceTokenizer(object): method __init__ (line 278) | def __init__(self, vocab, unk_token="[UNK]", max_input_chars_per_word=... method tokenize (line 283) | def tokenize(self, text): function _is_whitespace (line 337) | def _is_whitespace(char): function _is_control (line 349) | def _is_control(char): function _is_punctuation (line 361) | def _is_punctuation(char): FILE: paddlepalm/tokenizer/ernie_tokenizer.py function convert_to_unicode (line 30) | def convert_to_unicode(text): function printable_text (line 50) | def printable_text(text): function load_vocab (line 73) | def load_vocab(vocab_file): function convert_by_vocab (line 88) | def convert_by_vocab(vocab, items): function convert_tokens_to_ids (line 96) | def convert_tokens_to_ids(vocab, tokens): function convert_ids_to_tokens (line 100) | def convert_ids_to_tokens(inv_vocab, ids): function whitespace_tokenize (line 104) | def whitespace_tokenize(text): class FullTokenizer (line 113) | class FullTokenizer(object): method __init__ (line 116) | def __init__(self, vocab_file, do_lower_case=True): method tokenize (line 122) | def tokenize(self, text): method convert_tokens_to_ids (line 130) | def convert_tokens_to_ids(self, tokens): method convert_ids_to_tokens (line 133) | def convert_ids_to_tokens(self, ids): class CharTokenizer (line 137) | class CharTokenizer(object): method __init__ (line 140) | def __init__(self, vocab_file, do_lower_case=True): method tokenize (line 145) | def tokenize(self, text): method convert_tokens_to_ids (line 153) | def convert_tokens_to_ids(self, tokens): method convert_ids_to_tokens (line 156) | def convert_ids_to_tokens(self, ids): class BasicTokenizer (line 160) | class BasicTokenizer(object): method __init__ (line 163) | def __init__(self, do_lower_case=True): method tokenize (line 172) | def tokenize(self, text): method _run_strip_accents (line 199) | def _run_strip_accents(self, text): method _run_split_on_punc (line 210) | def _run_split_on_punc(self, text): method _tokenize_chinese_chars (line 230) | def _tokenize_chinese_chars(self, text): method _is_chinese_char (line 243) | def _is_chinese_char(self, cp): method _clean_text (line 265) | def _clean_text(self, text): class WordpieceTokenizer (line 279) | class WordpieceTokenizer(object): method __init__ (line 282) | def __init__(self, vocab, unk_token="[UNK]", max_input_chars_per_word=... method tokenize (line 287) | def tokenize(self, text): function _is_whitespace (line 341) | def _is_whitespace(char): function _is_control (line 353) | def _is_control(char): function _is_punctuation (line 365) | def _is_punctuation(char): function tokenize_chinese_chars (line 381) | def tokenize_chinese_chars(text): FILE: paddlepalm/trainer.py class Trainer (line 31) | class Trainer(object): method __init__ (line 36) | def __init__(self, name, mix_ratio=1.0, reuse_head_with=None): method build_forward (line 104) | def build_forward(self, backbone, task_head): method build_predict_forward (line 198) | def build_predict_forward(self, pred_backbone, pred_head): method build_backward (line 269) | def build_backward(self, optimizer, weight_decay=None, use_ema=False, ... method set_as_aux (line 318) | def set_as_aux(self): method fit_reader (line 322) | def fit_reader(self, reader, phase='train'): method load_ckpt (line 395) | def load_ckpt(self, model_path): method load_predict_model (line 432) | def load_predict_model(self, model_path, convert=False): method load_pretrain (line 448) | def load_pretrain(self, model_path, convert=False): method set_saver (line 463) | def set_saver(self, save_path, save_steps, save_type='ckpt'): method train (line 513) | def train(self, print_steps=5): method predict (line 548) | def predict(self, output_dir=None, print_steps=1000): method reset_buffer (line 590) | def reset_buffer(self): method _check_phase (line 593) | def _check_phase(self, phase): method _set_multitask (line 596) | def _set_multitask(self): method _set_nomultitask (line 599) | def _set_nomultitask(self): method _set_task_id (line 602) | def _set_task_id(self, task_id): method _init_exe_prog (line 605) | def _init_exe_prog(self, for_train=True): method get_one_batch (line 628) | def get_one_batch(self, phase='train'): method _set_exe (line 637) | def _set_exe(self, exe): method _set_dist_train (line 640) | def _set_dist_train(self, prog): method _set_dist_pred (line 643) | def _set_dist_pred(self, prog): method _set_fetch_list (line 646) | def _set_fetch_list(self, fetch_list): method train_one_step (line 649) | def train_one_step(self, batch): method predict_one_batch (line 676) | def predict_one_batch(self, batch): method name (line 691) | def name(self): method num_examples (line 695) | def num_examples(self): method mix_ratio (line 699) | def mix_ratio(self): method mix_ratio (line 703) | def mix_ratio(self, value): method num_epochs (line 707) | def num_epochs(self): method cur_train_step (line 711) | def cur_train_step(self): method cur_train_epoch (line 715) | def cur_train_epoch(self): method steps_pur_epoch (line 719) | def steps_pur_epoch(self): method _build_head (line 722) | def _build_head(self, net_inputs, phase, scope=""): method _save (line 730) | def _save(self, save_path, suffix=None): method _load (line 753) | def _load(self, infer_model_path=None): FILE: paddlepalm/utils/basic_helper.py function get_basename (line 9) | def get_basename(f): function get_suffix (line 13) | def get_suffix(f): function parse_yaml (line 17) | def parse_yaml(f, asdict=True, support_cmd_line=False): function parse_json (line 32) | def parse_json(f, asdict=True, support_cmd_line=False): function parse_list (line 47) | def parse_list(string, astype=str): function try_float (line 55) | def try_float(s): function check_io (line 64) | def check_io(in_attr, out_attr, strict=False, in_name="left", out_name="... function encode_inputs (line 74) | def encode_inputs(inputs, scope_name, sep='.', cand_set=None): function decode_inputs (line 87) | def decode_inputs(inputs, scope_name, sep='.', keep_unk_keys=True): function build_executor (line 99) | def build_executor(on_gpu): function fit_attr (line 110) | def fit_attr(conf, fit_attr, strict=False): FILE: paddlepalm/utils/config_helper.py class JsonConfig (line 32) | class JsonConfig(object): method __init__ (line 37) | def __init__(self, config_path): method _parse (line 40) | def _parse(self, config_path): method __getitem__ (line 51) | def __getitem__(self, key): method asdict (line 54) | def asdict(self): method print_config (line 57) | def print_config(self): class ArgumentGroup (line 63) | class ArgumentGroup(object): method __init__ (line 64) | def __init__(self, parser, title, des): method add_arg (line 67) | def add_arg(self, name, type, default, help, **kwargs): class ArgConfig (line 77) | class ArgConfig(object): method __init__ (line 82) | def __init__(self): method add_arg (line 135) | def add_arg(self, name, dtype, default, descrip): method build_conf (line 138) | def build_conf(self): function str2bool (line 142) | def str2bool(v): function print_arguments (line 148) | def print_arguments(args, log=None): class PDConfig (line 161) | class PDConfig(object): method __init__ (line 167) | def __init__(self, json_file=None, yaml_file=None, fuse_args=True): method load_json (line 202) | def load_json(self, file_path, fuse_args=True): method load_yaml (line 226) | def load_yaml(self, file_path_list, fuse_args=True): method build (line 251) | def build(self): method asdict (line 255) | def asdict(self): method __add__ (line 258) | def __add__(self, new_arg): method __getattr__ (line 273) | def __getattr__(self, name): method Print (line 285) | def Print(self): FILE: paddlepalm/utils/print_helper.py function print_dict (line 17) | def print_dict(dic, title=""): FILE: paddlepalm/utils/reader_helper.py function create_feed_batch_process_fn (line 29) | def create_feed_batch_process_fn(net_inputs): function check_io (line 69) | def check_io(in_attr, out_attr, strict=False, in_name="left", out_name="... function _check_and_adapt_shape_dtype (line 79) | def _check_and_adapt_shape_dtype(rt_val, attr, message=""): function _zero_batch (line 98) | def _zero_batch(attrs): function _zero_batch_x (line 107) | def _zero_batch_x(attrs, batch_size): function create_net_inputs (line 120) | def create_net_inputs(input_attrs, is_async=False, iterator_fn=None, dev... function create_iterator_fn (line 137) | def create_iterator_fn(iterator, iterator_prefix, shape_and_dtypes, outn... function create_multihead_inference_fn (line 169) | def create_multihead_inference_fn(iterators, iterator_prefixes, joint_sh... function create_multihead_iterator_fn (line 202) | def create_multihead_iterator_fn(iterators, iterator_prefixes, joint_sha... function create_joint_iterator_fn (line 238) | def create_joint_iterator_fn(iterators, iterator_prefixes, joint_shape_a... function merge_input_attrs (line 340) | def merge_input_attrs(backbone_attr, task_attrs, insert_taskid=True, ins... FILE: paddlepalm/utils/saver.py function init_checkpoint (line 28) | def init_checkpoint(exe, init_checkpoint_path, main_program, skip_list =... function init_pretraining_params (line 47) | def init_pretraining_params(exe, FILE: paddlepalm/utils/textprocess_helper.py function is_whitespace (line 16) | def is_whitespace(c):