MCPcopy Create free account

hub / github.com/JeremySun1224/CCFBDCI2020 / functions

Functions7,969 in github.com/JeremySun1224/CCFBDCI2020

↓ 3 callersMethod_create_examples
Creates examples for the training and dev sets.
transformers/examples/multiple-choice/utils_multiple_choice.py:347
↓ 3 callersMethod_create_examples
Creates examples for the training and dev sets.
transformers/examples/multiple-choice/utils_multiple_choice.py:396
↓ 3 callersMethod_create_examples
Creates examples for the training and dev sets.
transformers/examples/multiple-choice/utils_multiple_choice.py:443
↓ 3 callersFunction_dataset
(file_path, ref_path=None)
transformers/examples/contrib/legacy/run_language_modeling.py:155
↓ 3 callersMethod_expand_inputs_for_generation
( input_ids: torch.LongTensor, expand_size: int = 1, is_encoder_decoder: bool = False,
transformers/src/transformers/generation_utils.py:134
↓ 3 callersMethod_get_beam_scorer_and_kwargs
(batch_size, max_length, num_return_sequences=1)
transformers/tests/test_generation_utils.py:100
↓ 3 callersMethod_get_config_and_data
(self)
transformers/tests/test_modeling_fsmt.py:265
↓ 3 callersMethod_get_dataset
(self, n_obs=1000, max_len=128)
transformers/examples/seq2seq/test_datasets.py:160
↓ 3 callersMethod_get_embeds
(self, wte, input_ids)
transformers/tests/test_modeling_tf_common.py:677
↓ 3 callersMethod_get_logits_processor_and_kwargs
(input_length, eos_token_id)
transformers/tests/test_generation_utils.py:64
↓ 3 callersMethod_hash_vectors
(self, vectors, num_hashes, attention_mask, increase_num_buckets=False)
transformers/src/transformers/modeling_reformer.py:609
↓ 3 callersMethod_init_weights
(self, module)
transformers/src/transformers/modeling_bart.py:190
↓ 3 callersMethod_is_main
(self)
transformers/examples/rag/distributed_retriever.py:79
↓ 3 callersMethod_logit
(x, W, b, proj=None)
transformers/src/transformers/modeling_tf_transfo_xl_utilities.py:111
↓ 3 callersFunction_long_tensor
(tok_lst)
transformers/tests/test_modeling_fsmt.py:360
↓ 3 callersMethod_main_retrieve
(self, question_hidden_states: np.ndarray, n_docs: int)
transformers/src/transformers/retrieval_rag.py:518
↓ 3 callersFunction_make_linear_from_emb
(emb)
transformers/src/transformers/modeling_bart.py:214
↓ 3 callersMethod_pad_and_diagonalize
shift every row 1 step right, converting columns into diagonals. Example:: chunked_hidden_states: [ 0.4983, 2.6918, -
transformers/src/transformers/modeling_longformer.py:573
↓ 3 callersMethod_pad_and_transpose_last_two_dims
pads rows and then flips rows and columns
transformers/src/transformers/modeling_longformer.py:562
↓ 3 callersFunction_prepare_bart_decoder_inputs
Prepare masks that ignore padding tokens in the decoder and a causal mask for the decoder if none are provided. This mimics the default behav
transformers/src/transformers/modeling_bart.py:160
↓ 3 callersFunction_prepare_fsmt_decoder_inputs
Prepare masks that ignore padding tokens in the decoder and a causal mask for the decoder if none are provided. This mimics the default behav
transformers/src/transformers/modeling_fsmt.py:286
↓ 3 callersMethod_prepare_inputs
Prepare :obj:`inputs` before feeding them to the model, converting them to tensors if they are not already and handling potential sta
transformers/src/transformers/trainer.py:1066
↓ 3 callersMethod_read_csv
(self, input_file)
transformers/examples/multiple-choice/utils_multiple_choice.py:343
↓ 3 callersMethod_read_csv
(self, input_file)
transformers/examples/multiple-choice/utils_multiple_choice.py:392
↓ 3 callersMethod_read_json
(self, input_file)
transformers/examples/multiple-choice/utils_multiple_choice.py:438
↓ 3 callersMethod_reshape
(self, tensor, first_dim, batch_size)
transformers/src/transformers/modeling_prophetnet.py:773
↓ 3 callersMethod_resolve_path
(self, index_path, filename)
transformers/src/transformers/retrieval_rag.py:122
↓ 3 callersMethod_shape
(self, tensor, seq_len, bsz)
transformers/src/transformers/modeling_bart.py:680
↓ 3 callersMethod_shape
(self, tensor, seq_len, bsz)
transformers/src/transformers/modeling_fsmt.py:764
↓ 3 callersMethod_shape
(self, tensor: tf.Tensor, dim_0, bsz)
transformers/src/transformers/modeling_tf_bart.py:671
↓ 3 callersMethod_special_token_mask
(self, seq)
transformers/src/transformers/tokenization_pegasus.py:88
↓ 3 callersMethod_special_token_mask
(self, seq)
transformers/src/transformers/tokenization_marian.py:247
↓ 3 callersMethod_special_token_mask
(self, seq)
transformers/src/transformers/tokenization_pegasus_fast.py:53
↓ 3 callersMethodassert_outputs_same
(self, after_outputs, outputs)
transformers/tests/test_modeling_tf_common.py:277
↓ 3 callersMethodavg_representation
(self, x)
transformers/examples/text-generation/pplm/run_pplm_discrim_train.py:65
↓ 3 callersMethodbpe
(self, token)
transformers/src/transformers/tokenization_deberta.py:113
↓ 3 callersMethodbuild
(self, input_shape)
transformers/src/transformers/modeling_tf_transfo_xl.py:832
↓ 3 callersFunctionbuild_relative_position
Build relative position according to the query and key We assume the absolute position of query :math:`P_q` is range from (0, query_size) an
transformers/src/transformers/modeling_deberta.py:436
↓ 3 callersMethodbuild_vocab
(self)
transformers/src/transformers/tokenization_transfo_xl.py:309
↓ 3 callersFunctionbytes_to_mega_bytes
Utility to convert a number of bytes (int) into a number of mega bytes (int)
transformers/src/transformers/benchmark/benchmark_utils.py:584
↓ 3 callersMethodcall
(self, x, training=False)
transformers/src/transformers/modeling_tf_gpt2.py:174
↓ 3 callersFunctioncheck_equal
(marian_cfg, k1, k2)
transformers/src/transformers/convert_marian_to_pytorch.py:377
↓ 3 callersFunctioncheck_output_dir
Checks whether to bail out if output_dir already exists and has more than expected_items in it `args`: needs to have the following attribute
transformers/examples/seq2seq/utils.py:624
↓ 3 callersFunctioncheck_slow
()
transformers/tests/test_skip_decorators.py:46
↓ 3 callersFunctioncompute_predictions_log_probs
XLNet write prediction logic (more complex than Bert's). Write final predictions to the json file and log-odds of null if needed. Requir
transformers/src/transformers/data/metrics/squad_metrics.py:577
↓ 3 callersFunctioncompute_predictions_logits
Write final predictions to the json file and log-odds of null if needed.
transformers/src/transformers/data/metrics/squad_metrics.py:372
↓ 3 callersFunctionconvert
(source_dir: Path, dest_dir)
transformers/src/transformers/convert_marian_to_pytorch.py:567
↓ 3 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputFeatures`
transformers/examples/multiple-choice/utils_multiple_choice.py:508
↓ 3 callersMethodconvert_examples_to_features
Loads a data file into a list of `InputFeatures` `cls_token_at_end` define the location of the CLS token: - False (Default, BERT/X
transformers/examples/token-classification/utils_ner.py:78
↓ 3 callersMethodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
transformers/src/transformers/tokenization_t5.py:250
↓ 3 callersMethoddelete_token
Delete token. Do not fail if token does not exist.
transformers/src/transformers/hf_api.py:251
↓ 3 callersMethoddevice
The device used by this process.
transformers/src/transformers/training_args.py:424
↓ 3 callersFunctiondistill_main
(args)
transformers/examples/seq2seq/distillation.py:267
↓ 3 callersFunctionembed_passages_for_retrieval
(passages, tokenizer, qa_embedder, max_length=128, device="cuda:0")
transformers/examples/longform-qa/eli5_utils.py:567
↓ 3 callersFunctionembed_questions_for_retrieval
(q_ls, tokenizer, qa_embedder, device="cuda:0")
transformers/examples/longform-qa/eli5_utils.py:578
↓ 3 callersFunctionensure_valid_input
Ensure input are presented in the correct order, without any Non Args: model: The model used to forward the input data token
transformers/src/transformers/convert_graph_to_onnx.py:120
↓ 3 callersFunctionentropy
Calculate entropy of a pre-softmax logit Tensor
transformers/examples/deebert/src/modeling_highway_bert.py:16
↓ 3 callersFunctionevaluate
(args, model, tokenizer, criterion, prefix="")
transformers/examples/contrib/mm-imdb/run_mmimdb.py:233
↓ 3 callersFunctionformat_time
Format `t` (in seconds) to (h):mm:ss
transformers/src/transformers/utils/notebook.py:25
↓ 3 callersFunctiongenerate_identified_filename
Append a string-identifier at the end (before the extension, if any) to the provided filepath Args: filename: pathlib.Path The actua
transformers/src/transformers/convert_graph_to_onnx.py:78
↓ 3 callersMethodget_bart_tokenizer
(self)
transformers/examples/rag/test_distributed_retriever.py:113
↓ 3 callersMethodget_dataloader
(self, type_path: str, batch_size: int, shuffle: bool = False)
transformers/examples/lightning_base.py:185
↓ 3 callersMethodget_dataloader
(self, type_path: str, batch_size: int, shuffle: bool = False)
transformers/examples/seq2seq/finetune.py:251
↓ 3 callersMethodget_dataloader
(self, type_path: str, batch_size: int, shuffle: bool = False)
transformers/examples/rag/finetune.py:312
↓ 3 callersMethodget_dataset
(self)
transformers/examples/token-classification/utils_ner.py:363
↓ 3 callersMethodget_dpr_tokenizer
(self)
transformers/examples/rag/test_distributed_retriever.py:110
↓ 3 callersMethodget_dummy_canonical_hf_index_retriever
(self)
transformers/tests/test_retrieval_rag.py:118
↓ 3 callersMethodget_dummy_dataset
(self)
transformers/tests/test_retrieval_rag.py:106
↓ 3 callersMethodget_input_embeddings
Returns the model's input embeddings. Returns: :obj:`nn.Module`: A torch module mapping vocabulary to hidden states.
transformers/src/transformers/modeling_utils.py:447
↓ 3 callersMethodget_labels
(self)
transformers/examples/adversarial/utils_hans.py:159
↓ 3 callersFunctionget_model_modules
Get the model modules inside the transformers library.
transformers/utils/check_repo.py:112
↓ 3 callersFunctionget_models
Get the objects in module that are models.
transformers/utils/check_repo.py:139
↓ 3 callersMethodget_qa_logit_layer
Returns the the linear layer that produces question answering logits. Returns: :obj:`nn.Module`: A torch module mapping
transformers/src/transformers/modeling_lxmert.py:1105
↓ 3 callersMethodget_qa_logit_layer
Returns the the linear layer that produces question answering logits Returns: :obj:`nn.Module`: A torch module mapping t
transformers/src/transformers/modeling_lxmert.py:1335
↓ 3 callersMethodget_test_examples
(self, data_dir)
transformers/examples/multiple-choice/utils_multiple_choice.py:430
↓ 3 callersMethodget_two_letter_code
(self, three_letter_code)
transformers/src/transformers/convert_marian_tatoeba_to_pytorch.py:118
↓ 3 callersMethodget_vocab
(self)
transformers/src/transformers/tokenization_utils_fast.py:123
↓ 3 callersFunctionglue_convert_examples_to_features
Loads a data file into a list of ``InputFeatures`` Args: examples: List of ``InputExamples`` or ``tf.data.Dataset`` containing the e
transformers/src/transformers/data/processors/glue.py:42
↓ 3 callersFunctiongrad_status
(model: nn.Module)
transformers/examples/seq2seq/utils.py:565
↓ 3 callersMethodgradients
The accumulated gradients on the current replica.
transformers/src/transformers/optimization_tf.py:312
↓ 3 callersMethodgreedy_search
r""" Generates sequences for models with a language modeling head using greedy decoding. Parameters: input_ids (:obj:`to
transformers/src/transformers/generation_utils.py:599
↓ 3 callersMethodgroup_entities
Find and group together the adjacent tokens with the same entity predicted. Args: entities (:obj:`dict`): The entities p
transformers/src/transformers/pipelines.py:1535
↓ 3 callersFunctioninfer_shapes
Attempt to infer the static vs dynamic axes for each input and output tensors for a specific model Args: nlp: The pipeline object ho
transformers/src/transformers/convert_graph_to_onnx.py:148
↓ 3 callersMethodinference
(self, model, dataset_loader, rank, return_type)
code/unlabeledExtraction/src/trainer.py:603
↓ 3 callersFunctionis_apex_available
()
transformers/src/transformers/file_utils.py:254
↓ 3 callersFunctionis_cuda_and_apex_available
()
transformers/examples/test_examples.py:64
↓ 3 callersFunctionis_remote_url
(url_or_filename)
transformers/examples/lxmert/utils.py:242
↓ 3 callersFunctionlabel_smoothed_nll_loss
From fairseq
transformers/examples/seq2seq/utils.py:35
↓ 3 callersFunctionlist_field
(default=None, metadata=None)
transformers/src/transformers/benchmark/benchmark_args_utils.py:29
↓ 3 callersFunctionlmap
(f, x)
transformers/src/transformers/convert_marian_to_pytorch.py:297
↓ 3 callersFunctionload_spm
(path: str)
transformers/src/transformers/tokenization_marian.py:264
↓ 3 callersFunctionload_states_from_checkpoint
(model_file: str)
transformers/src/transformers/convert_dpr_original_checkpoint_to_pytorch.py:16
↓ 3 callersMethodlog
Log :obj:`logs` on the various objects watching training. Subclass and override this method to inject custom behavior. Args
transformers/src/transformers/trainer_tf.py:386
↓ 3 callersFunctionmake_eval_dict
(exact_scores, f1_scores, qid_list=None)
transformers/src/transformers/data/metrics/squad_metrics.py:108
↓ 3 callersFunctionmake_support
(question, source="wiki40b", method="dense", n_results=10)
transformers/examples/longform-qa/eli5_app.py:88
↓ 3 callersFunctionmerge_model_tokenizer_mappings
( model_mapping: Dict["PretrainedConfig", Union["PreTrainedModel", "TFPreTrainedModel"]], tokenizer_ma
transformers/tests/test_tokenization_common.py:55
↓ 3 callersFunctionp
(e)
transformers/docs/source/_static/js/custom.js:300
↓ 3 callersMethodpop_callback
Remove a callback from the current list of :class:`~transformer.TrainerCallback` and returns it. If the callback is not found, retur
transformers/src/transformers/trainer.py:349
↓ 3 callersMethodpost_attention
Post-attention processing.
transformers/src/transformers/modeling_tf_xlnet.py:175
↓ 3 callersMethodprepare_config_and_inputs
(self)
transformers/tests/test_modeling_transfo_xl.py:60
← previousnext →501–600 of 7,969, ranked by callers