MCPcopy Create free account

hub / github.com/CLUEbenchmark/CLUE / functions

Functions2,799 in github.com/CLUEbenchmark/CLUE

↓ 953 callersMethodjoin
(self)
baselines/models/xlnet/tpu_estimator.py:391
↓ 63 callersMethodget
(self)
baselines/models/xlnet/tpu_estimator.py:3047
↓ 54 callersMethodload
(module, prefix='')
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:715
↓ 45 callersMethodtrain
(self, input_fn, hooks=None, steps=None, max_steps=None,
baselines/models/xlnet/tpu_estimator.py:2460
↓ 44 callersMethodinit_weights
Initialize and prunes weights if needed.
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:180
↓ 42 callersMethoddecode
Converts a sequence of ids (integer) in a string, using the tokenizer and vocabulary with options to remove special tokens and clean
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:990
↓ 32 callersMethodpredict
(self, input_fn, predict_keys=None, hooks=None, checkp
baselines/models/xlnet/tpu_estimator.py:2502
↓ 31 callersMethod__init__
(self, config)
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:464
↓ 31 callersMethodshape
projection
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlm.py:153
↓ 31 callersMethodupdate
(self, val, n=1)
baselines/models_pytorch/classifier_pytorch/tools/common.py:273
↓ 27 callersFunctionconvert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
baselines/models/classifier_utils.py:36
↓ 27 callersMethodevaluate
(self, input_fn, steps=None, hooks=None, checkpoin
baselines/models/xlnet/tpu_estimator.py:2481
↓ 27 callersMethodfrom_pretrained
r""" Instantiates one of the base model classes of the library from a pre-trained model configuration. The model class to instantiate
baselines/models_pytorch/classifier_pytorch/transformers/modeling_auto.py:67
↓ 24 callersMethod_read_json
Reads a json list file.
baselines/models_pytorch/classifier_pytorch/processors/utils.py:97
↓ 23 callersMethodencode
Converts a string in a sequence of ids (integer), using the tokenizer and vocabulary. Same as doing ``self.convert_tokens_to_ids(sel
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:691
↓ 23 callersMethodload
(module, prefix='')
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:402
↓ 21 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_bert.py:319
↓ 21 callersMethod_read_json
Reads a tab separated value file.
baselines/models/classifier_utils.py:127
↓ 18 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:134
↓ 17 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_albert.py:243
↓ 17 callersFunctionprune_linear_layer
Prune a linear layer (a model parameters) to keep only entries in index. Return the pruned layer as a new layer with requires_grad=True.
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:758
↓ 17 callersMethodtokenize
(self, text)
baselines/models/bert/tokenization.py:170
↓ 15 callersMethod__init__
(self, config)
baselines/models_pytorch/mrc_pytorch/google_albert_pytorch_modeling.py:294
↓ 15 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/albert/modeling.py:397
↓ 15 callersFunctioncreate_int_feature
(values)
baselines/models/xlnet/run_classifier.py:411
↓ 15 callersFunctionprint_
(*args)
baselines/models/xlnet/prepro_utils.py:37
↓ 14 callersMethod_tie_or_clone_weights
Tie or clone module weights depending of weither we are using TorchScript or not
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:120
↓ 14 callersMethodconvert_tokens_to_ids
Converts a single token, or a sequence of tokens, (str/unicode) in a single integer id (resp. a sequence of ids), using the vocabulary.
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:661
↓ 14 callersMethodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file or a pytorch state dict. Download and cache the pre-trained model fil
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:629
↓ 13 callersMethodclose
(self)
baselines/models/roberta_wwm_ext/run_squad.py:1093
↓ 13 callersMethodclose
(self)
baselines/models/bert/run_squad.py:1093
↓ 12 callersMethodcapture
(self, o)
baselines/models/xlnet/tpu_estimator.py:3039
↓ 12 callersMethodclone
(self, pool)
baselines/models_pytorch/mrc_pytorch/tools/langconv.py:108
↓ 12 callersFunctioncreate_int_feature
(values)
baselines/models/roberta_wwm_ext/run_ner.py:454
↓ 12 callersFunctioncreate_int_feature
(values)
baselines/models/ernie/run_ner.py:454
↓ 12 callersFunctioncreate_int_feature
(values)
baselines/models/bert_wwm_ext/run_ner.py:454
↓ 12 callersFunctioncreate_int_feature
(values)
baselines/models/roberta_wwm_large_ext/run_ner.py:454
↓ 12 callersFunctioncreate_int_feature
(values)
baselines/models/bert/run_ner.py:461
↓ 12 callersFunctionhead_projection
Project hidden states to a specific head with a 4D-shape.
baselines/models/xlnet/modeling.py:80
↓ 12 callersMethodtokenize
(self, text)
baselines/models/roberta_wwm_ext/tokenization.py:170
↓ 12 callersMethodtokenize
(self, text)
baselines/models/ernie/tokenization.py:170
↓ 12 callersMethodtokenize
(self, text)
baselines/models/bert_wwm_ext/tokenization.py:170
↓ 12 callersMethodtokenize
(self, text)
baselines/models/roberta_wwm_large_ext/tokenization.py:170
↓ 11 callersMethodsave_pretrained
Save a model and its configuration file to a directory, so that it can be re-loaded using the `:func:`~transformers.PreTrainedModel.from_
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:206
↓ 11 callersMethodtokenize
(self, text)
baselines/models_pytorch/mrc_pytorch/tools/official_tokenization.py:124
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/roberta/modeling.py:375
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/roberta_wwm_ext/modeling.py:375
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/ernie/modeling.py:375
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/bert_wwm_ext/modeling.py:375
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/roberta_wwm_large_ext/modeling.py:375
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/bert/modeling.py:375
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/roberta/run_classifier.py:290
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/albert/run_classifier.py:286
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/roberta_wwm_ext/run_classifier.py:285
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/ernie/run_classifier.py:285
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/bert_wwm_ext/run_classifier.py:285
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/roberta_wwm_large_ext/run_classifier.py:288
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/bert/run_classifier.py:286
↓ 10 callersFunctionget_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_rank:
baselines/models/albert/modeling.py:981
↓ 9 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_distilbert.py:198
↓ 9 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/roberta_wwm_ext/tokenization.py:178
↓ 9 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/ernie/tokenization.py:178
↓ 9 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/bert_wwm_ext/tokenization.py:178
↓ 9 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/roberta_wwm_large_ext/tokenization.py:178
↓ 9 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/bert/tokenization.py:178
↓ 9 callersMethodencode_file
(self, path, ordered=False, verbose=False, add_eos=True, add_double_eos=False)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_transfo_xl.py:176
↓ 9 callersFunctionget_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_rank:
baselines/models/roberta/modeling.py:895
↓ 9 callersFunctionget_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_rank:
baselines/models/roberta_wwm_ext/modeling.py:895
↓ 9 callersFunctionget_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_rank:
baselines/models/ernie/modeling.py:895
↓ 9 callersFunctionget_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_rank:
baselines/models/bert_wwm_ext/modeling.py:895
↓ 9 callersFunctionget_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_rank:
baselines/models/roberta_wwm_large_ext/modeling.py:895
↓ 9 callersFunctionget_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_rank:
baselines/models/bert/modeling.py:895
↓ 9 callersFunctionsimple_accuracy
(preds, labels)
baselines/models_pytorch/classifier_pytorch/metrics/clue_compute_metrics.py:15
↓ 8 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlnet.py:428
↓ 8 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlm.py:340
↓ 8 callersFunction_create_or_get_iterations_per_loop
Creates or gets the iterations_per_loop variable. In TPUEstimator, the user provided computation, the model_fn, is wrapped inside a tf.while_loop
baselines/models/xlnet/tpu_estimator.py:139
↓ 8 callersMethod_get_resized_embeddings
Build a resized Embedding Module from a provided token Embedding Module. Increasing the size will add newly initialized vectors at the en
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:86
↓ 8 callersMethodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
baselines/models_pytorch/mrc_pytorch/tools/pytorch_optimization.py:89
↓ 7 callersMethod__init__
Conv1D layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2) Basically works like a Linear layer but the weights are
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:443
↓ 7 callersMethodclose
(self)
baselines/models/ernie/run_squad.py:1093
↓ 7 callersMethodclose
(self)
baselines/models/bert_wwm_ext/run_squad.py:1093
↓ 7 callersMethodclose
(self)
baselines/models/roberta_wwm_large_ext/run_squad.py:1093
↓ 7 callersFunctionencode_ids
(sp_model, text, sample=False)
baselines/models/xlnet/prepro_utils.py:106
↓ 7 callersMethodfeatures_and_labels
Gets `features` and `labels`.
baselines/models/xlnet/tpu_estimator.py:3159
↓ 7 callersMethodtokenize
Basic Tokenization of a piece of text. Split on "white spaces" only, for sub-word tokenization, see WordPieceTokenizer. Args:
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_bert.py:292
↓ 6 callersMethod__init__
(self, d_model, d_inner, dropout, pre_lnorm=False, layer_norm_epsilon=1e-5)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_transfo_xl.py:197
↓ 6 callersMethod__init__
(self, n_state, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_gpt2.py:204
↓ 6 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_roberta.py:165
↓ 6 callersMethod__init__
(self, features=None, labels=None, dataset=None, signals=None)
baselines/models/xlnet/tpu_estimator.py:3114
↓ 6 callersMethod_compute_logit
(self, hidden, weight, bias, proj)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_transfo_xl_utilities.py:78
↓ 6 callersMethod_init_weight
(self, weight)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_transfo_xl.py:466
↓ 6 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/albert/tokenization.py:180
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/roberta/create_pretraining_data.py:172
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/albert/create_pretraining_data.py:172
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/albert/resources/create_pretraining_data_roberta.py:172
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/roberta_wwm_ext/create_pretraining_data.py:169
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/ernie/create_pretraining_data.py:169
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/bert_wwm_ext/create_pretraining_data.py:169
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/roberta_wwm_large_ext/create_pretraining_data.py:169
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/bert/create_pretraining_data.py:169
next →1–100 of 2,799, ranked by callers