MCPcopy Create free account

hub / github.com/huggingface/transformers / functions

Functions4,119 in github.com/huggingface/transformers

↓ 1 callersMethodcreate_and_check_mobilebert_for_multiple_choice
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
tests/test_modeling_tf_mobilebert.py:217
↓ 1 callersMethodcreate_and_check_mobilebert_for_multiple_choice
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_mobilebert.py:329
↓ 1 callersMethodcreate_and_check_mobilebert_for_next_sequence_prediction
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
tests/test_modeling_tf_mobilebert.py:179
↓ 1 callersMethodcreate_and_check_mobilebert_for_next_sequence_prediction
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_mobilebert.py:235
↓ 1 callersMethodcreate_and_check_mobilebert_for_pretraining
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
tests/test_modeling_tf_mobilebert.py:190
↓ 1 callersMethodcreate_and_check_mobilebert_for_pretraining
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_mobilebert.py:251
↓ 1 callersMethodcreate_and_check_mobilebert_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
tests/test_modeling_tf_mobilebert.py:250
↓ 1 callersMethodcreate_and_check_mobilebert_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_mobilebert.py:275
↓ 1 callersMethodcreate_and_check_mobilebert_for_sequence_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
tests/test_modeling_tf_mobilebert.py:205
↓ 1 callersMethodcreate_and_check_mobilebert_for_sequence_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_mobilebert.py:297
↓ 1 callersMethodcreate_and_check_mobilebert_for_token_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
tests/test_modeling_tf_mobilebert.py:236
↓ 1 callersMethodcreate_and_check_mobilebert_for_token_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_mobilebert.py:314
↓ 1 callersMethodcreate_and_check_mobilebert_model
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
tests/test_modeling_tf_mobilebert.py:145
↓ 1 callersMethodcreate_and_check_mobilebert_model
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_mobilebert.py:159
↓ 1 callersMethodcreate_and_check_openai_gpt_double_head
( self, config, input_ids, input_mask, head_mask, token_type_ids, mc_token_ids, *args )
tests/test_modeling_tf_openai_gpt.py:144
↓ 1 callersMethodcreate_and_check_openai_gpt_lm_head
(self, config, input_ids, input_mask, head_mask, token_type_ids, *args)
tests/test_modeling_tf_openai_gpt.py:133
↓ 1 callersMethodcreate_and_check_openai_gpt_model
(self, config, input_ids, head_mask, token_type_ids, *args)
tests/test_modeling_openai.py:108
↓ 1 callersMethodcreate_and_check_openai_gpt_model
(self, config, input_ids, input_mask, head_mask, token_type_ids, *args)
tests/test_modeling_tf_openai_gpt.py:116
↓ 1 callersMethodcreate_and_check_reformer_feed_backward_chunking
(self, config, input_ids, input_mask)
tests/test_modeling_reformer.py:302
↓ 1 callersMethodcreate_and_check_reformer_feed_forward_chunking
(self, config, input_ids, input_mask)
tests/test_modeling_reformer.py:284
↓ 1 callersMethodcreate_and_check_reformer_layer_dropout_seed
(self, config, input_ids, input_mask, is_decoder)
tests/test_modeling_reformer.py:251
↓ 1 callersMethodcreate_and_check_reformer_model
( self, config, input_ids, input_mask, )
tests/test_modeling_reformer.py:168
↓ 1 callersMethodcreate_and_check_reformer_model_fp16_forward
(self, config, input_ids, input_mask)
tests/test_modeling_reformer.py:375
↓ 1 callersMethodcreate_and_check_reformer_model_fp16_generate
(self, config, input_ids, input_mask)
tests/test_modeling_reformer.py:383
↓ 1 callersMethodcreate_and_check_reformer_model_with_attn_mask
(self, config, input_ids, input_mask, is_decoder)
tests/test_modeling_reformer.py:210
↓ 1 callersMethodcreate_and_check_reformer_model_with_lm_backward
( self, config, input_ids, input_mask, )
tests/test_modeling_reformer.py:185
↓ 1 callersMethodcreate_and_check_reformer_no_chunking
(self, config, input_ids, input_mask)
tests/test_modeling_reformer.py:391
↓ 1 callersMethodcreate_and_check_reformer_random_seed
(self, config, input_ids, input_mask)
tests/test_modeling_reformer.py:344
↓ 1 callersMethodcreate_and_check_reformer_with_lm
( self, config, input_ids, input_mask, )
tests/test_modeling_reformer.py:194
↓ 1 callersMethodcreate_and_check_roberta_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_roberta.py:125
↓ 1 callersMethodcreate_and_check_roberta_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_roberta.py:121
↓ 1 callersMethodcreate_and_check_roberta_for_multiple_choice
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_roberta.py:158
↓ 1 callersMethodcreate_and_check_roberta_for_multiple_choice
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_roberta.py:158
↓ 1 callersMethodcreate_and_check_roberta_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_roberta.py:181
↓ 1 callersMethodcreate_and_check_roberta_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_roberta.py:145
↓ 1 callersMethodcreate_and_check_roberta_for_token_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_roberta.py:143
↓ 1 callersMethodcreate_and_check_roberta_for_token_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_roberta.py:133
↓ 1 callersMethodcreate_and_check_roberta_model
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_roberta.py:106
↓ 1 callersMethodcreate_and_check_roberta_model
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_roberta.py:102
↓ 1 callersMethodcreate_and_check_save_and_load
( self, config, input_ids, attention_mask, encoder_hidden_states,
tests/test_modeling_encoder_decoder.py:170
↓ 1 callersMethodcreate_and_check_save_and_load_encoder_decoder_model
( self, config, input_ids, attention_mask, encoder_hidden_states,
tests/test_modeling_encoder_decoder.py:211
↓ 1 callersMethodcreate_and_check_t5_decoder_model_attention_mask_past
( self, config, input_ids, decoder_input_ids, attention_mask, decoder_attention_mask, lm_labels, )
tests/test_modeling_t5.py:222
↓ 1 callersMethodcreate_and_check_t5_decoder_model_attention_mask_past
( self, config, input_ids, decoder_input_ids, attention_mask )
tests/test_modeling_tf_t5.py:165
↓ 1 callersMethodcreate_and_check_t5_decoder_model_past
( self, config, input_ids, decoder_input_ids, attention_mask, decoder_attention_mask, lm_labels, )
tests/test_modeling_t5.py:188
↓ 1 callersMethodcreate_and_check_t5_decoder_model_past
(self, config, input_ids, decoder_input_ids, attention_mask)
tests/test_modeling_tf_t5.py:131
↓ 1 callersMethodcreate_and_check_t5_model
( self, config, input_ids, decoder_input_ids, attention_mask, decoder_attention_mask, lm_labels, )
tests/test_modeling_t5.py:132
↓ 1 callersMethodcreate_and_check_t5_model
(self, config, input_ids, input_mask, token_labels)
tests/test_modeling_tf_t5.py:83
↓ 1 callersMethodcreate_and_check_t5_model_fp16_forward
( self, config, input_ids, decoder_input_ids, attention_mask, decoder_attention_mask, lm_labels, )
tests/test_modeling_t5.py:278
↓ 1 callersMethodcreate_and_check_t5_with_lm_head
( self, config, input_ids, decoder_input_ids, attention_mask, decoder_attention_mask, lm_labels, )
tests/test_modeling_t5.py:165
↓ 1 callersMethodcreate_and_check_t5_with_lm_head
(self, config, input_ids, input_mask, token_labels)
tests/test_modeling_tf_t5.py:114
↓ 1 callersMethodcreate_and_check_transfo_xl_lm_head
(self, config, input_ids_1, input_ids_2, lm_labels)
tests/test_modeling_tf_transfo_xl.py:121
↓ 1 callersMethodcreate_and_check_transfo_xl_model
(self, config, input_ids_1, input_ids_2, lm_labels)
tests/test_modeling_tf_transfo_xl.py:90
↓ 1 callersMethodcreate_and_check_xlm_for_token_classification
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_tf_xlm.py:223
↓ 1 callersMethodcreate_and_check_xlm_for_token_classification
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_xlm.py:300
↓ 1 callersMethodcreate_and_check_xlm_lm_head
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_tf_xlm.py:151
↓ 1 callersMethodcreate_and_check_xlm_lm_head
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_xlm.py:154
↓ 1 callersMethodcreate_and_check_xlm_model
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_tf_xlm.py:126
↓ 1 callersMethodcreate_and_check_xlm_model
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_xlm.py:129
↓ 1 callersMethodcreate_and_check_xlm_qa
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_tf_xlm.py:175
↓ 1 callersMethodcreate_and_check_xlm_qa
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_xlm.py:208
↓ 1 callersMethodcreate_and_check_xlm_sequence_classif
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_tf_xlm.py:200
↓ 1 callersMethodcreate_and_check_xlm_sequence_classif
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_xlm.py:274
↓ 1 callersMethodcreate_and_check_xlm_simple_qa
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_xlm.py:179
↓ 1 callersMethodcreate_and_check_xlnet_base_model
( self, config, input_ids_1, input_ids_2, input_ids_q, perm_ma
tests/test_modeling_tf_xlnet.py:133
↓ 1 callersMethodcreate_and_check_xlnet_base_model
( self, config, input_ids_1, input_ids_2, input_ids_q, perm_ma
tests/test_modeling_xlnet.py:160
↓ 1 callersMethodcreate_and_check_xlnet_base_model_with_att_output
( self, config, input_ids_1, input_ids_2, input_ids_q, perm_ma
tests/test_modeling_xlnet.py:204
↓ 1 callersMethodcreate_and_check_xlnet_for_multiple_choice
( self, config, input_ids_1, input_ids_2, input_ids_q, perm_ma
tests/test_modeling_tf_xlnet.py:321
↓ 1 callersMethodcreate_and_check_xlnet_for_token_classification
( self, config, input_ids_1, input_ids_2, input_ids_q, perm_ma
tests/test_modeling_tf_xlnet.py:287
↓ 1 callersMethodcreate_and_check_xlnet_lm_head
( self, config, input_ids_1, input_ids_2, input_ids_q, perm_ma
tests/test_modeling_tf_xlnet.py:175
↓ 1 callersMethodcreate_and_check_xlnet_lm_head
( self, config, input_ids_1, input_ids_2, input_ids_q, perm_ma
tests/test_modeling_xlnet.py:230
↓ 1 callersMethodcreate_and_check_xlnet_qa
( self, config, input_ids_1, input_ids_2, input_ids_q, perm_ma
tests/test_modeling_tf_xlnet.py:226
↓ 1 callersMethodcreate_and_check_xlnet_qa
( self, config, input_ids_1, input_ids_2, input_ids_q, perm_ma
tests/test_modeling_xlnet.py:282
↓ 1 callersMethodcreate_and_check_xlnet_sequence_classif
( self, config, input_ids_1, input_ids_2, input_ids_q, perm_ma
tests/test_modeling_tf_xlnet.py:258
↓ 1 callersMethodcreate_and_check_xlnet_sequence_classif
( self, config, input_ids_1, input_ids_2, input_ids_q, perm_ma
tests/test_modeling_xlnet.py:394
↓ 1 callersMethodcreate_and_check_xlnet_token_classif
( self, config, input_ids_1, input_ids_2, input_ids_q, perm_ma
tests/test_modeling_xlnet.py:357
↓ 1 callersMethodcreate_and_check_xxx_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:156
↓ 1 callersMethodcreate_and_check_xxx_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
templates/adding_a_new_model/tests/test_modeling_xxx.py:153
↓ 1 callersMethodcreate_and_check_xxx_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:195
↓ 1 callersMethodcreate_and_check_xxx_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
templates/adding_a_new_model/tests/test_modeling_xxx.py:171
↓ 1 callersMethodcreate_and_check_xxx_for_sequence_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:169
↓ 1 callersMethodcreate_and_check_xxx_for_sequence_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
templates/adding_a_new_model/tests/test_modeling_xxx.py:193
↓ 1 callersMethodcreate_and_check_xxx_for_token_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:181
↓ 1 callersMethodcreate_and_check_xxx_for_token_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
templates/adding_a_new_model/tests/test_modeling_xxx.py:210
↓ 1 callersMethodcreate_and_check_xxx_model
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:135
↓ 1 callersMethodcreate_and_check_xxx_model
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
templates/adding_a_new_model/tests/test_modeling_xxx.py:134
↓ 1 callersMethodcreate_and_test_config_common_properties
(self)
tests/test_configuration_common.py:28
↓ 1 callersMethodcreate_and_test_config_from_and_save_pretrained
(self)
tests/test_configuration_common.py:51
↓ 1 callersMethodcreate_and_test_config_to_json_file
(self)
tests/test_configuration_common.py:41
↓ 1 callersMethodcreate_and_test_config_to_json_string
(self)
tests/test_configuration_common.py:35
↓ 1 callersMethodcreate_and_test_config_with_num_labels
(self)
tests/test_configuration_common.py:60
↓ 1 callersMethodcreate_from_csv
( cls, file_name, split_name="", column_label=0, column_text=1, column_id=None, skip_first_row=False,
src/transformers/data/processors/utils.py:142
↓ 1 callersFunctioncreate_lengths_groups
(lengths, k=0)
examples/distillation/grouped_batch_sampler.py:34
↓ 1 callersMethodcreate_mask
Creates causal attention mask. Float mask where 1.0 indicates masked, 0.0 indicates not-masked. Args: qlen: Sequence len
src/transformers/modeling_xlnet.py:661
↓ 1 callersMethodcreate_mask
Creates causal attention mask. Float mask where 1.0 indicates masked, 0.0 indicates not-masked. Args: qlen: TODO Lysandr
src/transformers/modeling_tf_xlnet.py:414
↓ 1 callersMethodcreate_position_ids_from_input_ids
Replace non-padding symbols with their position numbers. Position numbers begin at padding_idx+1. Padding symbols are ignored. This is modifi
src/transformers/modeling_tf_roberta.py:66
↓ 1 callersMethodcreate_position_ids_from_inputs_embeds
We are provided embeddings directly. We cannot infer which are padded so just generate sequential position ids. :param tf.Tensor inpu
src/transformers/modeling_tf_roberta.py:77
↓ 1 callersMethodcreate_sample
QuestionAnsweringPipeline leverages the SquadExample/SquadFeatures internally. This helper method encapsulate all the logic for conve
src/transformers/pipelines.py:1143
↓ 1 callersFunctioncreate_sinusoidal_embeddings
(n_pos, dim, out)
src/transformers/modeling_distilbert.py:56
↓ 1 callersFunctioncreate_sinusoidal_embeddings
(n_pos, dim, out)
src/transformers/modeling_xlm.py:60
↓ 1 callersMethodcreate_t5_and_check_t5_generate_with_past_key_value_states
( self, config, input_ids, decoder_input_ids, attention_mask, decoder_attention_mask, lm_labels, )
tests/test_modeling_t5.py:264
← previousnext →901–1,000 of 4,119, ranked by callers