MCPcopy Create free account

hub / github.com/PaddlePaddle/Research / functions

Functions7,542 in github.com/PaddlePaddle/Research

↓ 2 callersFunctionsave_model
(exe, postfix, prog)
CV/PaddleReid/train_pid_color_type_all.py:139
↓ 2 callersFunctionsave_model
save paramters and optimizer related varaibles
KG/DuKEVU_Baseline/paddle-video-classify-tag/utils/train_utils.py:144
↓ 2 callersFunctionsave_png
(pred_value, palette, name)
CV/SemSegPaddleDG/eval.py:349
↓ 2 callersFunctionscale_l2
# copy lines from here https://github.com/tensorflow/models/blob/master/research/adversarial_text/adversarial_losses.py#L190 # shape(x) = (ba
ST_DM/KDD2021-MSTPAC/code/MST-PAC/nets/common/losses.py:187
↓ 2 callersFunctionscale_l2
# copy lines from here https://github.com/tensorflow/models/blob/master/research/adversarial_text/adversarial_losses.py#L190 # shape(x) = (ba
NLP/UNIMO-2/src/finetune/glue_eval.py:30
↓ 2 callersFunctionscale_l2
# copy lines from here https://github.com/tensorflow/models/blob/master/research/adversarial_text/adversarial_losses.py#L190 # shape(x) = (ba
NLP/EMNLP2021-SgSum/src/eval/glue_eval.py:29
↓ 2 callersFunctionscaled_dot_product_attention
Scaled Dot-Product Attention
NLP/ACL2020-GraphSum/src/models/attention.py:207
↓ 2 callersFunctionscore_fn
(ref, sample, scorers=def_scorers)
NLP/Dialogue-PLATO/tools/dstc7_avsd_eval.py:25
↓ 2 callersMethodsegment
(self, p1, p2, p3, p4)
CV/VehicleCounting/cam-configs/utils/utils.py:64
↓ 2 callersMethodsegments
Desc: 获取所有的segment Args: self : self Return: None Raise: None
ST_DM/GenRegion/src/generate/gen/regionalg.py:193
↓ 2 callersFunctionsemantic_similar
(a, b)
ST_DM/KDD2021-HGAMN/src/dataset/listwise_dataset.py:42
↓ 2 callersFunctionsequence_mask
Args: seq_hidden (Tensor): NULL mask (Tensor): 1 for un-mask tokens, and 0 for mask tokens. mode (str): zero/-inf/+inf
NLP/Text2SQL-BASELINE/text2sql/utils/nn_utils.py:109
↓ 2 callersMethodset_alloc_info
set allocating position to new value
CV/PaddleReid/reid/data/shared_queue/sharedmemory.py:278
↓ 2 callersMethodset_default_args
set default flags. These default flags will work when user doesnot define in conf file. These default flags will be covered w
ST_DM/KDD2021-MSTPAC/code/ST-PAC/frame/core/base_frame.py:106
↓ 2 callersMethodset_default_args
set default flags. These default flags will work when user doesnot define in conf file. These default flags will be covered w
ST_DM/KDD2021-MSTPAC/code/MST-PAC/frame/core/base_frame.py:94
↓ 2 callersMethodset_input
set file reader
NLP/EMNLP2019-MAL/src/reader.py:379
↓ 2 callersMethodshortcut
(self, input, ch_out, stride, name, if_first=False)
CV/PaddleReid/reid/model/se_resnet_vd.py:184
↓ 2 callersMethodshortcut
(self, input, ch_out, stride, name, if_first=False)
CV/PaddleReid/reid/model/resnet_vd.py:199
↓ 2 callersMethodshortcut
(self, input, ch_out, stride, is_first, name)
CV/CLPI-Collaborative-Learning-for-Diabetic-Retinopathy-Grading/clfnet/resnet.py:144
↓ 2 callersMethodshortcut
(self, input, ch_out, stride, is_first, name)
CV/SemSegPaddle/src/models/backbone/resnet.py:213
↓ 2 callersMethodshortcut
(self, input, ch_out, stride, is_first, name)
CV/AGEchallenge/LocalizationFCN/resnet_modified.py:144
↓ 2 callersMethodshortcut
(self, input, ch_out, stride, is_first, name)
CV/AGEchallenge/Classification/resnet.py:143
↓ 2 callersMethodshortcut
(self, input, ch_out, stride, is_first, name)
CV/AGEchallenge/LocalizationUNet/resnet.py:133
↓ 2 callersMethodshutdown
(self)
NLP/ACL2021-PAIR/metric/tokenizers.py:146
↓ 2 callersFunctionsimple_accuracy
(preds, labels)
NLP/NAACL2021-RocketQA/model/src/finetune/cross_encoder.py:292
↓ 2 callersFunctionsimple_accuracy
(preds, labels)
NLP/NAACL2021-RocketQA/model/src/finetune/dual_encoder.py:367
↓ 2 callersFunctionsimple_accuracy
(preds, labels)
NLP/ACL2021-PAIR/model/src/finetune/dual_encoder.py:384
↓ 2 callersFunctionsinge_map
(st, en)
NLP/NAACL2021-RocketQA/model/src/finetune/dual_encoder.py:186
↓ 2 callersFunctionsinge_map
singe_map
NLP/UNIMO-2/src/finetune/glue_eval.py:196
↓ 2 callersFunctionsinge_map
(st, en)
NLP/ACL2021-PAIR/model/src/finetune/dual_encoder.py:203
↓ 2 callersFunctionsinge_map
singe_map
NLP/EMNLP2021-SgSum/src/eval/glue_eval.py:192
↓ 2 callersFunctionsinge_map
singe_map
NLP/UNIMO/src/eval/glue_eval.py:131
↓ 2 callersFunctionsinge_map
(st, en)
KG/DuEL_Baseline/ernie/finetune/type_pairwise_ranker.py:254
↓ 2 callersFunctionskip_semicolon
Args: Returns:
NLP/Text2SQL-BASELINE/tools/evaluation/text2sql_evaluation.py:669
↓ 2 callersFunctionskip_semicolon
Args: Returns:
NLP/Text2SQL-BASELINE/text2sql/utils/dusql_evaluation.py:661
↓ 2 callersFunctionsoftmax
(logit)
CV/SemSegPaddle/src/models/model_builder.py:95
↓ 2 callersFunctionsoftmax_with_loss
(logit, label, ignore_mask=None, num_classes=2)
CV/SemSegPaddle/src/utils/loss.py:23
↓ 2 callersMethodsplit_filelist
split filelist for multi-node or multi gpus.
ST_DM/KDD2021-MSTPAC/code/ST-PAC/frame/core/base_frame.py:627
↓ 2 callersMethodsplit_filelist
split filelist for multi-node or multi gpus.
ST_DM/KDD2021-MSTPAC/code/MST-PAC/frame/core/base_frame.py:616
↓ 2 callersMethodsplit_train_query
(self, x, y)
CV/PaddleFSL/methods/template.py:19
↓ 2 callersMethodsqueeze_excitation
(self, input, num_channels, reduction_ratio, name=None)
CV/PaddleReid/reid/model/se_resnet_vd.py:251
↓ 2 callersFunctionstate_assign
(new_state, old_state)
NLP/IJCAI2019-MMPMS/mmpms/modules/generator.py:25
↓ 2 callersMethodstep
step logits: paddle tensor, shape with [N, C, d1, d2, ...] labels: paddle tensor, shape with [N, C, d1, d2, ...]
CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/metric/nllmetric.py:45
↓ 2 callersMethodstop
Stops running threads and wait for them to exit, if necessary. Should be called by the same thread which called `start()`. A
CV/SemSegPaddle/src/datasets/data_utils.py:95
↓ 2 callersFunctionstrip_ids
Strip ids_to_strip from the end ids.
NLP/EMNLP2019-MAL/src/preprocess/text_encoder.py:44
↓ 2 callersFunctiontest_rouge
Calculate ROUGE scores of sequences passed as an iterator e.g. a list of str, an open file, StringIO or even sys.stdin
NLP/ACL2020-GraphSum/src/tools/cal_rouge.py:55
↓ 2 callersFunctiontest_rouge
Calculate ROUGE scores of sequences passed as an iterator e.g. a list of str, an open file, StringIO or even sys.stdin
NLP/EMNLP2021-SgSum/src/tools/cal_rouge.py:55
↓ 2 callersFunctiontimestr_to_timestamp
(timestr)
ST_DM/KDD2021-CHAML/preprocess/step3.py:23
↓ 2 callersMethodto_seglists
Desc: 把数据按照edge转换成lists of points return: lists of points Raise: None
ST_DM/GenRegion/src/generate/roadnet_load.py:23
↓ 2 callersMethodto_tensor
(self, shapes, dtypes, lod_levels)
NLP/UNIMO-2/src/finetune/img2txt_oscar.py:147
↓ 2 callersFunctiontokenization_on_examples
(examples, tokenizer)
NLP/ACL2019-KTNET/retrieve_concepts/tokenization_record/do_tokenization.py:207
↓ 2 callersFunctiontokenization_on_examples
(examples, tokenizer)
NLP/ACL2019-KTNET/retrieve_concepts/tokenization_squad/do_tokenization.py:209
↓ 2 callersMethodtokenize
tokenize
ST_DM/KDD2021-MSTPAC/code/MST-PAC/utils/tokenization.py:129
↓ 2 callersMethodtokenize
(self, text)
NLP/NAACL2021-RocketQA/metric/dpr/utils/tokenizers.py:143
↓ 2 callersMethodtokenize
(self, text)
NLP/ACL2021-PAIR/metric/tokenizers.py:143
↓ 2 callersMethodtokenize
Tokenize question and columns and concatenate. Parameters: question (str): db (Table): col_ord
NLP/Text2SQL-BASELINE/text2sql/dataproc/ernie_input_encoder_v2.py:149
↓ 2 callersMethodtokenize
(self, text)
KG/AAAI2021_SSAN/utils/tokenization.py:122
↓ 2 callersFunctiontop_k_by_class
Extracts the top k predictions for each video, sorted by class. Args: predictions: A numpy matrix containing the outputs of the model. Di
KG/DuKEVU_Baseline/paddle-video-classify-tag/metrics/youtube8m/eval_util.py:96
↓ 2 callersFunctiontopic_generalization_for_list
topic generalization for list
NLP/ACL2019-DuConv/retrieval_paddle/tools/convert_conversation_corpus_to_model_text.py:67
↓ 2 callersMethodtopk_vector_quantizer
inputs: (batch_size, seq_len, emb_dim)
NLP/UNIMO-2/src/finetune/img2txt_oscar.py:1087
↓ 2 callersFunctiontrace_fianl_result
trace fianl result
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/generative_model/network.py:94
↓ 2 callersFunctiontrace_fianl_result
trace fianl result
NLP/ACL2019-DuConv/generative_paddle/network.py:94
↓ 2 callersMethodtrain_format
result: one batch train narray
ST_DM/KDD2021-MSTPAC/code/ST-PAC/nets/base_net.py:64
↓ 2 callersFunctiontrain_loop
train_loop
NLP/EMNLP2019-MAL/src/train.py:558
↓ 2 callersMethodtrain_step
(self, args)
NLP/MRQA2019-D-NET/server/bert_server/pdnlp/algorithm/multitask.py:39
↓ 2 callersMethodtrain_step
(self, args)
NLP/MRQA2019-D-NET/server/ernie_server/pdnlp/algorithm/multitask.py:39
↓ 2 callersFunctiontransform_labels
(bbox_labels, sample_bbox)
CV/astar2019/image_util.py:143
↓ 2 callersFunctiontransformer
(src_vocab_size, trg_vocab_size, phone_vocab_size, max_length,
NLP/ACL2019-JEMT/model.py:582
↓ 2 callersMethodtranspose
(mat)
NLP/MRQA2019-D-NET/server/ernie_server/mrc_service.py:117
↓ 2 callersFunctiontxt2txt_encoder
:param sample_generator: :param vocab: :param target_vocab: :return:
NLP/EMNLP2019-MAL/src/preprocess/gen_utils.py:121
↓ 2 callersFunctiontxt2txt_generator
:param source_fname: :param target_fname: :return:
NLP/EMNLP2019-MAL/src/preprocess/gen_utils.py:107
↓ 2 callersFunctiontxt_line_iterator
generator for line :param fname: :return:
NLP/EMNLP2019-MAL/src/preprocess/subword_decode.py:96
↓ 2 callersMethodtype_matching_entities
(self, path, position="t")
KG/CoKE/bin/pathquery_data_preprocess.py:136
↓ 2 callersMethodunpack_data
数据解包
CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/trainer/evaluator.py:212
↓ 2 callersMethodunparse_agg
(self, agg, is_row_calc=False)
NLP/Text2SQL-BASELINE/text2sql/grammars/dusql_v2.py:671
↓ 2 callersMethodunparse_cond
Args: cond: { "_type": "Ne", "agg_id": { "_type"
NLP/Text2SQL-BASELINE/text2sql/grammars/nl2sql.py:324
↓ 2 callersMethodupdate
Updates the progress bar. Args: current (int): Index of current step. values (list): List of tuples: `(name,
CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/utils/progbar.py:77
↓ 2 callersMethodupdate
Update config
CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/libs/config.py:126
↓ 2 callersMethodupdate_from_file
(self, config_file)
CV/SemSegPaddleDG/src/utils/collect.py:124
↓ 2 callersMethodupdate_from_list
(self, config_list)
CV/SemSegPaddleDG/src/utils/collect.py:113
↓ 2 callersMethodupdate_seq
update alive sequence. need pre-gather the inner seq then concat the new step id
NLP/UNIMO/src/finetune/trigram_blocking.py:57
↓ 2 callersMethodutt_filter_pred
(self, utt)
NLP/Dialogue-PLATO/plato/data/field.py:187
↓ 2 callersMethodutts_filter_pred
(self, utts)
NLP/Dialogue-PLATO/plato/data/field.py:191
↓ 2 callersFunctionvaild_loop
model vaild loop
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/generative_model/network.py:353
↓ 2 callersFunctionvaild_loop
model vaild loop
NLP/ACL2019-DuConv/generative_paddle/network.py:353
↓ 2 callersMethodvec
Desc: seg构建的向量, end - start构成了这个seg的向量 Args: self : self Return: vec, tuple of (x, y) Raise:
ST_DM/GenRegion/src/generate/gen/generator.py:130
↓ 2 callersMethodverify_net_output
verify net output
ST_DM/KDD2021-MSTPAC/code/ST-PAC/frame/core/base_frame.py:226
↓ 2 callersMethodverify_net_output
verify net output
ST_DM/KDD2021-MSTPAC/code/MST-PAC/frame/core/base_frame.py:214
↓ 2 callersFunctionvisualdl_log
log visualization
NLP/UNIMO/src/utils/utils.py:23
↓ 2 callersFunctionvisualize
(cfg, vis_file_list=None, use_gpu=False, vis_dir="visual_predict",
CV/SemSegPaddle/vis.py:108
↓ 2 callersMethodvocab_size
get the vocab size
NLP/UNIMO-2/src/model/roberta_tokenization.py:294
↓ 2 callersMethodvocab_size
get the vocab size
NLP/EMNLP2021-SgSum/src/eval/tokenization.py:248
↓ 2 callersMethodvocab_size
get the vocab size
NLP/UNIMO/src/model/tokenization.py:300
↓ 2 callersFunctionwhite_space_fix
(text)
NLP/ACL2024-NACL/src/eval_utils.py:319
↓ 2 callersFunctionwhite_space_fix
(text)
NLP/ACL2024-NACL/src/compute_scores.py:26
↓ 2 callersFunctionwindows_partition
partite windows into window_size x window_size Args: x: Tensor, shape=[b, h, w, c] window_size: int, window size Returns:
CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/model/brain_intracranial_hemorrhage_clas/swin_transformers.py:331
↓ 2 callersFunctionwindows_partition
partite windows into window_size x window_size Args: x: Tensor, shape=[b, h, w, c] window_size: int, window size Returns:
CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/model/brain_intracranial_hemorrhage_clas/swin_transformers_update.py:332
↓ 2 callersFunctionwrap_decoder
The wrapper assembles together all needed layers for the decoder.
ST_DM/KDD2021-MSTPAC/code/MST-PAC/nets/common/transformer.py:654
↓ 2 callersFunctionwrap_decoder
The wrapper assembles together all needed layers for the decoder.
NLP/EMNLP2019-MAL/src/relative_model.py:698
↓ 2 callersFunctionwrap_decoder
The wrapper assembles together all needed layers for the decoder.
NLP/EMNLP2019-MAL/src/forward_model.py:688
← previousnext →1,801–1,900 of 7,542, ranked by callers