MCPcopy Create free account

hub / github.com/LiteSSLHub/DisCo / functions

Functions201 in github.com/LiteSSLHub/DisCo

Method__init__
(self, hidden_size)
src/model.py:68
Method__init__
(self, hidden_size, hidden_dropout_prob, num_classes)
src/model.py:83
Method__init__
(self, vocab_file, do_lower_case=True, max_len=None, never_split=("[UNK]", "[SEP]", "[PAD]",
src/pytorch_pretrained_bert/tokenization.py:78
Method__init__
Constructs a BasicTokenizer. Args: do_lower_case: Whether to lower case the input.
src/pytorch_pretrained_bert/tokenization.py:161
Method__init__
(self, vocab, unk_token="[UNK]", max_input_chars_per_word=100)
src/pytorch_pretrained_bert/tokenization.py:278
Method__init__
(self, params, lr=required, warmup=-1, t_total=-1, schedule='warmup_linear', b1=0.9, b2=0.999
src/pytorch_pretrained_bert/optimization.py:59
Method__init__
(self, last_hidden_state=None, pooled_output=None, hidden_states=None, attentions=None)
src/pytorch_pretrained_bert/modeling.py:74
Method__init__
Constructs BertConfig. Args: vocab_size_or_config_json_file: Vocabulary size of `inputs_ids` in `BertModel`. hidden_s
src/pytorch_pretrained_bert/modeling.py:97
Method__init__
Construct a layernorm module in the TF style (epsilon inside the square root).
src/pytorch_pretrained_bert/modeling.py:194
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:213
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:242
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:293
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:307
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:319
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:332
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:360
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:383
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:398
Method__init__
(self, config, bert_model_embedding_weights)
src/pytorch_pretrained_bert/modeling.py:413
Method__init__
(self, config, bert_model_embedding_weights)
src/pytorch_pretrained_bert/modeling.py:432
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:442
Method__init__
(self, config, bert_model_embedding_weights)
src/pytorch_pretrained_bert/modeling.py:452
Method__init__
(self, config, *inputs, **kwargs)
src/pytorch_pretrained_bert/modeling.py:468
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:664
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:762
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:827
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:890
Method__init__
(self, config, num_labels=2)
src/pytorch_pretrained_bert/modeling.py:955
Method__init__
(self, config, num_choices=2)
src/pytorch_pretrained_bert/modeling.py:1021
Method__init__
(self, config, num_labels=2)
src/pytorch_pretrained_bert/modeling.py:1093
Method__init__
(self, config)
src/pytorch_pretrained_bert/modeling.py:1169
Method__iter__
(self)
src/utils.py:56
Method__len__
(self)
src/utils.py:50
Method__len__
(self)
src/data.py:349
Method__len__
(self)
src/data.py:441
Method__len__
(self)
src/data.py:465
Method__len__
(self)
src/data.py:509
Method__len__
(self)
src/pregenerate_training_data.py:90
Method__next__
(self)
src/utils.py:60
Method__repr__
(self)
src/pytorch_pretrained_bert/modeling.py:169
Functionclean_web_text
clean text.
src/utils.py:90
Functioncnn_dataset_to_jsonl
(fp, dataset)
src/utils.py:118
Functioncollator
(items, cls_id, sep_id, pad_id, text_max_len)
src/data.py:537
Methodconvert_ids_to_tokens
Converts a sequence of ids in wordpiece tokens using the vocab.
src/pytorch_pretrained_bert/tokenization.py:112
MethodcornerNet_loss
start_logits [batch_size, sequence_length] start_positions [batch_size, sequence_length] end_logits
src/pytorch_pretrained_bert/modeling.py:1185
Functioncutoff
(batch, rate)
src/train.py:177
Functiondropout
(batch)
src/train.py:171
Functionfilename_to_url
Return the url and etag (which may be ``None``) stored for `filename`. Raise ``FileNotFoundError`` if `filename` or its stored metadata do no
src/pytorch_pretrained_bert/file_utils.py:48
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, output_hidden_states=False, output
src/model.py:45
Methodforward
(self, bert_output, cls_mask)
src/model.py:72
Methodforward
(self, bert_output)
src/model.py:89
Methodforward
(self, batch, specific_student=None, inputs_embeds=None, do_adversary=False)
src/model.py:167
Methodforward
(self, x)
src/pytorch_pretrained_bert/modeling.py:202
Methodforward
(self, input_ids, token_type_ids=None, position_ids=None)
src/pytorch_pretrained_bert/modeling.py:225
Methodforward
(self, hidden_states, attention_mask, output_attentions=False)
src/pytorch_pretrained_bert/modeling.py:263
Methodforward
(self, hidden_states, input_tensor)
src/pytorch_pretrained_bert/modeling.py:299
Methodforward
(self, input_tensor, attention_mask, output_attentions=False)
src/pytorch_pretrained_bert/modeling.py:312
Methodforward
(self, hidden_states)
src/pytorch_pretrained_bert/modeling.py:325
Methodforward
(self, hidden_states, input_tensor)
src/pytorch_pretrained_bert/modeling.py:338
Methodforward
(self, hidden_states, attention_mask, output_attentions=False)
src/pytorch_pretrained_bert/modeling.py:352
Methodforward
(self, hidden_states, attention_mask, output_hidden_states=False, output_attentions=False)
src/pytorch_pretrained_bert/modeling.py:365
Methodforward
(self, hidden_states)
src/pytorch_pretrained_bert/modeling.py:388
Methodforward
(self, hidden_states)
src/pytorch_pretrained_bert/modeling.py:405
Methodforward
(self, hidden_states)
src/pytorch_pretrained_bert/modeling.py:425
Methodforward
(self, sequence_output)
src/pytorch_pretrained_bert/modeling.py:436
Methodforward
(self, pooled_output)
src/pytorch_pretrained_bert/modeling.py:446
Methodforward
(self, sequence_output, pooled_output)
src/pytorch_pretrained_bert/modeling.py:457
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, inputs_embeds=None, position_ids=N
src/pytorch_pretrained_bert/modeling.py:671
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None, next_senten
src/pytorch_pretrained_bert/modeling.py:768
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None)
src/pytorch_pretrained_bert/modeling.py:833
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, next_sentence_label=None)
src/pytorch_pretrained_bert/modeling.py:896
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None)
src/pytorch_pretrained_bert/modeling.py:963
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None)
src/pytorch_pretrained_bert/modeling.py:1029
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None)
src/pytorch_pretrained_bert/modeling.py:1101
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, start_positions=None, end_positions=None,
src/pytorch_pretrained_bert/modeling.py:1177
Methodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file or a pytorch state dict. Download and cache the pre-trained model fil
src/pytorch_pretrained_bert/modeling.py:493
Functiongelu
Implementation of the gelu activation function. For information: OpenAI GPT's gelu is slightly different (and gives slightly different results
src/pytorch_pretrained_bert/modeling.py:53
Functionget_file_extension
(path: str, dot=True, lower: bool = True)
src/pytorch_pretrained_bert/file_utils.py:236
Methodget_lr
(self)
src/pytorch_pretrained_bert/optimization.py:79
Methodinit_bert_weights
Initialize the weights.
src/pytorch_pretrained_bert/modeling.py:479
Functionlocal_shuffle
(batch)
src/train.py:144
Functionlr_lambda
(current_step)
src/train.py:215
Methodone_cornerNet_loss
(logits, positions, alpha: float = 2, beta: float = 4)
src/pytorch_pretrained_bert/modeling.py:1200
Functionpad_2d
(x, pad_len, pad_id)
src/data.py:526
Functionparameter_amount
(model)
src/utils.py:83
Functionread_set_from_file
Extract a de-duped collection (set) of text from a file. Expected file format is one item per line.
src/pytorch_pretrained_bert/file_utils.py:224
Functionread_tsv
Reads a tab separated value file.
src/utils.py:31
Functions3_request
Wrapper function for s3 requests in order to create more helpful error messages.
src/pytorch_pretrained_bert/file_utils.py:117
Methodset_prediction_weight
(self, last_loss)
src/model.py:132
Functionswish
(x)
src/pytorch_pretrained_bert/modeling.py:61
Methodtest_dataloader
(self)
src/data.py:227
Methodtokenize
Tokenizes a piece of text.
src/pytorch_pretrained_bert/tokenization.py:172
Methodtokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the gi
src/pytorch_pretrained_bert/tokenization.py:283
Methodtrain_dataloader
(self)
src/data.py:191
Functionudacollator
(items)
src/data.py:580
Methodunsupervised_dataloader
(self)
src/data.py:202
Methodval_dataloader
(self)
src/data.py:216
Functionwarmup_constant
(x, warmup=0.002)
src/pytorch_pretrained_bert/optimization.py:28
Functionwarmup_cosine
(x, warmup=0.002)
src/pytorch_pretrained_bert/optimization.py:23
Functionwarmup_linear
(x, warmup=0.002)
src/pytorch_pretrained_bert/optimization.py:33
← previousnext →101–200 of 201, ranked by callers