MCPcopy Create free account

hub / github.com/IDEA-CCNL/Fengshenbang-LM / functions

Functions2,547 in github.com/IDEA-CCNL/Fengshenbang-LM

Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, start_positions=None,end_positions=None, subjects=
fengshen/models/tagging_models/bert_for_tagging.py:136
Methodforward
(self, x)
fengshen/models/tagging_models/layers/linears.py:12
Methodforward
(self, hidden_states, p_mask=None)
fengshen/models/tagging_models/layers/linears.py:23
Methodforward
(self, hidden_states, start_positions=None, p_mask=None)
fengshen/models/tagging_models/layers/linears.py:35
Methodforward
(self, x, y)
fengshen/models/tagging_models/layers/linears.py:51
Methodforward
Compute the conditional log likelihood of a sequence of tags given emission scores. Args: emissions (`~torch.Tensor`): Emission sc
fengshen/models/tagging_models/layers/crf.py:52
Methodforward
(self, output, target)
fengshen/models/tagging_models/losses/label_smoothing.py:11
Methodforward
input: [N, C] target: [N, ]
fengshen/models/tagging_models/losses/focal_loss.py:13
Methodforward
:param z: shape (b, latent_dim)
fengshen/models/PPVAE/pluginVAE.py:28
Methodforward
(self, enc_z)
fengshen/models/PPVAE/pluginVAE.py:53
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`, defaults to :obj:`None`): Labels f
fengshen/models/bart/modeling_bart.py:150
Methodforward
(self, **inputs)
fengshen/models/bart/modeling_bart.py:398
Methodforward
(self, input_ids, attention_mask, token_type_ids, position_ids=None, mlmlabels=None, clslabels=None, clslabels
fengshen/models/unimc/modeling_unimc.py:313
Methodforward
(self, y_pred, y_true)
fengshen/models/uniex/modeling_uniex.py:844
Methodforward
(self, start_logits, end_logits, cls_logits)
fengshen/models/uniex/modeling_uniex.py:867
Methodforward
(self, hidden_state)
fengshen/models/uniex/modeling_uniex.py:881
Methodforward
(self, input_ids, attention_mask, token_type_ids,
fengshen/models/uniex/modeling_uniex.py:924
Methodforward
(self, x)
fengshen/models/zen1/modeling.py:186
Methodforward
(self, input_ids, token_type_ids=None)
fengshen/models/zen1/modeling.py:208
Methodforward
(self, input_ids, token_type_ids=None)
fengshen/models/zen1/modeling.py:239
Methodforward
(self, hidden_states, attention_mask, head_mask=None)
fengshen/models/zen1/modeling.py:278
Methodforward
(self, hidden_states, input_tensor)
fengshen/models/zen1/modeling.py:324
Methodforward
(self, input_tensor, attention_mask, head_mask=None)
fengshen/models/zen1/modeling.py:356
Methodforward
(self, hidden_states)
fengshen/models/zen1/modeling.py:376
Methodforward
(self, hidden_states, input_tensor)
fengshen/models/zen1/modeling.py:389
Methodforward
(self, hidden_states, attention_mask, head_mask=None)
fengshen/models/zen1/modeling.py:405
Methodforward
(self, hidden_states, ngram_hidden_states, ngram_position_matrix, attention_mask, ngram_attent
fengshen/models/zen1/modeling.py:426
Methodforward
(self, hidden_states)
fengshen/models/zen1/modeling.py:458
Methodforward
(self, hidden_states)
fengshen/models/zen1/modeling.py:478
Methodforward
(self, hidden_states)
fengshen/models/zen1/modeling.py:498
Methodforward
(self, sequence_output)
fengshen/models/zen1/modeling.py:509
Methodforward
(self, pooled_output)
fengshen/models/zen1/modeling.py:519
Methodforward
(self, sequence_output, pooled_output)
fengshen/models/zen1/modeling.py:530
Methodforward
(self, input_ids, input_ngram_ids, ngram_position_matrix, toke
fengshen/models/zen1/modeling.py:628
Methodforward
(self, input_ids, input_ngram_ids, ngram_position_matrix, token_type_ids=None, ngram_token_typ
fengshen/models/zen1/modeling.py:758
Methodforward
(self, input_ids, input_ngram_ids, ngram_position_matrix, token_type_ids=None, attention_mask=None, masked_lm_
fengshen/models/zen1/modeling.py:839
Methodforward
(self, input_ids, input_ngram_ids, ngram_position_matrix, token_type_ids=None, attention_mask=None, next_sente
fengshen/models/zen1/modeling.py:905
Methodforward
(self, input_ids, input_ngram_ids, ngram_position_matrix, token_type_ids=None, attention_mask=None, labels=Non
fengshen/models/zen1/modeling.py:976
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None, valid_ids=None, atten
fengshen/models/zen1/modeling.py:1048
Methodforward
(self, input_ids=None, token_type_ids=None, position_ids=None, inputs_embeds=None)
fengshen/models/longformer/modeling_longformer.py:477
Methodforward
(self, x, seq_dim=0)
fengshen/models/longformer/modeling_longformer.py:539
Methodforward
:class:`LongformerSelfAttention` expects `len(hidden_states)` to be multiple of `attention_window`. Padding to `attention_window` hap
fengshen/models/longformer/modeling_longformer.py:590
Methodforward
(self, hidden_states, input_tensor)
fengshen/models/longformer/modeling_longformer.py:1287
Methodforward
( self, hidden_states, attention_mask=None, layer_head_mask=None, is_i
fengshen/models/longformer/modeling_longformer.py:1321
Methodforward
(self, hidden_states)
fengshen/models/longformer/modeling_longformer.py:1355
Methodforward
(self, hidden_states, input_tensor)
fengshen/models/longformer/modeling_longformer.py:1370
Methodforward
( self, hidden_states, attention_mask=None, layer_head_mask=None, is_i
fengshen/models/longformer/modeling_longformer.py:1386
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, output_att
fengshen/models/longformer/modeling_longformer.py:1427
Methodforward
(self, hidden_states)
fengshen/models/longformer/modeling_longformer.py:1516
Methodforward
(self, features, **kwargs)
fengshen/models/longformer/modeling_longformer.py:1539
Methodforward
r""" Returns: Examples:: >>> import torch >>> from transformers import LongformerModel, LongformerTokenizer
fengshen/models/longformer/modeling_longformer.py:1790
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the masked l
fengshen/models/longformer/modeling_longformer.py:1931
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size,)`, `optional`): Labels for computing the sequence classification/
fengshen/models/longformer/modeling_longformer.py:2036
Methodforward
(self, hidden_states, **kwargs)
fengshen/models/longformer/modeling_longformer.py:2125
Methodforward
r""" start_positions (:obj:`torch.LongTensor` of shape :obj:`(batch_size,)`, `optional`): Labels for position (index) of the start
fengshen/models/longformer/modeling_longformer.py:2158
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the token cl
fengshen/models/longformer/modeling_longformer.py:2301
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size,)`, `optional`): Labels for computing the multiple choice classifi
fengshen/models/longformer/modeling_longformer.py:2396
Methodforward
r""" Returns: Examples: ```python >>> from PIL import Image >>> import requests >>> from transformer
fengshen/models/clip/modeling_taiyi_clip.py:164
Methodforward
(self, text)
fengshen/models/clip/modeling_taiyi_clip.py:276
Methodforward
(self, hidden_states)
fengshen/models/deberta_v2/modeling_deberta_v2.py:63
Methodforward
(self, input, mask, dim)
fengshen/models/deberta_v2/modeling_deberta_v2.py:108
Methodforward
(ctx, input, local_ctx)
fengshen/models/deberta_v2/modeling_deberta_v2.py:174
Methodforward
Call the module Args: x (`torch.tensor`): The input tensor to apply dropout
fengshen/models/deberta_v2/modeling_deberta_v2.py:207
Methodforward
(self, hidden_states, input_tensor)
fengshen/models/deberta_v2/modeling_deberta_v2.py:250
Methodforward
( self, hidden_states, attention_mask, output_attentions=False, query_
fengshen/models/deberta_v2/modeling_deberta_v2.py:265
Methodforward
(self, hidden_states: torch.Tensor)
fengshen/models/deberta_v2/modeling_deberta_v2.py:304
Methodforward
(self, hidden_states, input_tensor)
fengshen/models/deberta_v2/modeling_deberta_v2.py:319
Methodforward
( self, hidden_states, attention_mask, query_states=None, relative_pos
fengshen/models/deberta_v2/modeling_deberta_v2.py:334
Methodforward
(self, hidden_states, residual_states, input_mask)
fengshen/models/deberta_v2/modeling_deberta_v2.py:374
Methodforward
( self, hidden_states, attention_mask, output_hidden_states=True, outp
fengshen/models/deberta_v2/modeling_deberta_v2.py:451
Methodforward
Call the module Args: hidden_states (`torch.FloatTensor`): Input states to the module usually the output
fengshen/models/deberta_v2/modeling_deberta_v2.py:644
Methodforward
(self, input_ids=None, token_type_ids=None, position_ids=None, mask=None, inputs_embeds=None)
fengshen/models/deberta_v2/modeling_deberta_v2.py:834
Methodforward
( self, input_ids: Optional[torch.Tensor] = None, attention_mask: Optional[torch.Tenso
fengshen/models/deberta_v2/modeling_deberta_v2.py:1009
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked language mo
fengshen/models/deberta_v2/modeling_deberta_v2.py:1117
Methodforward
(self, hidden_states)
fengshen/models/deberta_v2/modeling_deberta_v2.py:1180
Methodforward
(self, hidden_states)
fengshen/models/deberta_v2/modeling_deberta_v2.py:1202
Methodforward
(self, sequence_output)
fengshen/models/deberta_v2/modeling_deberta_v2.py:1214
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
fengshen/models/deberta_v2/modeling_deberta_v2.py:1259
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the token classificati
fengshen/models/deberta_v2/modeling_deberta_v2.py:1368
Methodforward
r""" start_positions (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for position (index) of the start of the la
fengshen/models/deberta_v2/modeling_deberta_v2.py:1444
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the multiple choice classification los
fengshen/models/deberta_v2/modeling_deberta_v2.py:1555
Methodforward
(self, hidden_states)
fengshen/models/megatron_t5/modeling_megatron_t5.py:245
Methodforward
(self, hidden_states)
fengshen/models/megatron_t5/modeling_megatron_t5.py:266
Methodforward
(self, hidden_states)
fengshen/models/megatron_t5/modeling_megatron_t5.py:282
Methodforward
(self, hidden_states)
fengshen/models/megatron_t5/modeling_megatron_t5.py:300
Methodforward
(self, hidden_states)
fengshen/models/megatron_t5/modeling_megatron_t5.py:326
Methodforward
Self-attention (if key_value_states is None) or attention over source sentence (provided by key_value_states).
fengshen/models/megatron_t5/modeling_megatron_t5.py:452
Methodforward
( self, hidden_states, attention_mask=None, position_bias=None, layer_
fengshen/models/megatron_t5/modeling_megatron_t5.py:598
Methodforward
( self, hidden_states, key_value_states, attention_mask=None, position
fengshen/models/megatron_t5/modeling_megatron_t5.py:638
Methodforward
( self, hidden_states, attention_mask=None, position_bias=None, encode
fengshen/models/megatron_t5/modeling_megatron_t5.py:687
Methodforward
( self, input_ids=None, token_type_ids=None, position_ids=None, inputs_embeds=None, past_key_values_le
fengshen/models/megatron_t5/modeling_megatron_t5.py:940
Methodforward
( self, input_ids=None, position_ids=None, attention_mask=None, encode
fengshen/models/megatron_t5/modeling_megatron_t5.py:1037
Methodforward
(self, hidden_states, word_embeddings_weight)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1461
Methodforward
r""" Returns: Example:: >>> from transformers import T5Tokenizer, T5Model >>> tokenizer = T5Tokenizer.from_
fengshen/models/megatron_t5/modeling_megatron_t5.py:1548
Methodforward
r""" Returns: Example:: >>> from transformers import T5Tokenizer, T5EncoderModel >>> tokenizer = T5Tokenizer
fengshen/models/megatron_t5/modeling_megatron_t5.py:2051
Methodforward
(self, x, y)
fengshen/models/ubert/modeling_ubert.py:229
Methodforward
(self, y_pred, y_true)
fengshen/models/ubert/modeling_ubert.py:242
Methodforward
(self, input_ids, attention_mask, token_type_ids,
fengshen/models/ubert/modeling_ubert.py:270
Methodforward
( self, input_ids=None, token_type_ids=None, position_ids=None, inputs_embeds=None, past_key_values_le
fengshen/models/roformer/modeling_roformer.py:171
Methodforward
(self, x, seq_dim=0)
fengshen/models/roformer/modeling_roformer.py:214
← previousnext →1,801–1,900 of 2,547, ranked by callers