MCPcopy Create free account

hub / github.com/csunny/algorithm / functions

Functions223 in github.com/csunny/algorithm

↓ 1 callersFunctiontest_reverse_list
()
common/reverse_list.py:32
↓ 1 callersFunctiontest_reverse_str
()
common/reverse_list.py:40
↓ 1 callersFunctiontext_2_image
(text)
nlp/openai_gpt.py:37
↓ 1 callersFunctiontokenize
(prompt, add_eos_token=True)
llmodels/alpaca/finetune.py:84
↓ 1 callersFunctiontrain_epoch
(epoch, wandb)
moe/train_pretrain.py:29
↓ 1 callersFunctiontranspose_output
(X, num_heads)
nlp/transformer.py:50
↓ 1 callersMethodunion
(self, vertex_one, vertex_two)
graph/directed_graph.py:26
Method__getitem__
(self, idx)
moe/lm_dataset.py:54
Method__getitem__
(self, idx)
moe/lm_dataset.py:157
Method__getitem__
(self, index)
moe/lm_dataset.py:217
Method__getitem__
(self, index)
moe/lm_dataset.py:340
Method__getitem__
(self, idx)
llmodels/bert/finetune.py:84
Method__init__
(self)
hashtable/ht.py:9
Method__init__
(self)
heap/min_binary_heap.py:13
Method__init__
(self)
heap/binary_heap.py:13
Method__init__
(self)
stack/base.py:13
Method__init__
(self, arr)
examples/num_set.py:22
Method__init__
(self, vocab_size, num_hiddens, norm_shape, ffn_num_input, ffn_num_hiddens, num_heads, num_l
nlp/bert.py:21
Method__init__
(self, num_inputs, **kwargs)
nlp/bert.py:74
Method__init__
(self, vocab_size, num_hiddens, norm_shape, ffn_num_input, ffn_num_hiddens, num_heads, num_la
nlp/bert.py:84
Method__init__
(self, key_size, query_size, value_size, num_hiddens, num_heads, dropout, bias=False, **kwarg
nlp/transformer.py:15
Method__init__
(self, ffn_num_input, ffn_num_hiddens, ffn_num_outputs, **kwargs)
nlp/transformer.py:58
Method__init__
(self, key_size, query_size, value_size, num_hiddens, norm_shape, ffn_num_input, ffn_num_hidd
nlp/transformer.py:79
Method__init__
(self, vocab_size, key_size, query_size, value_size, num_hiddens, norm_shape, ffn_num_input,
nlp/transformer.py:98
Method__init__
(self, key_size, query_size, value_size, num_hiddens, norm_shape, ffn_num_input, ffn_num_hidd
nlp/transformer.py:125
Method__init__
(self, vocab_size, key_size, query_size, value_size, num_hiddens, norm_shape, ffn_num_input,
nlp/transformer.py:166
Method__init__
(self, input_size, output_size)
nlp/line_regression.py:10
Method__init__
(self, input_size, hidden_size, num_classes)
nlp/no_line_regression.py:12
Method__init__
( self, dropout: float = 0.0, bos_token_id: int = 0, eos_token
moe/model_config.py:16
Method__init__
(self, args: MoeConfig)
moe/model_config.py:159
Method__init__
(self, config: MoeConfig)
moe/model_config.py:239
Method__init__
(self, config: MoeConfig)
moe/model_config.py:255
Method__init__
(self, config: MoeConfig)
moe/model_config.py:317
Method__init__
(self, layer_id: int, config: MoeConfig)
moe/model_config.py:383
Method__init__
(self, config: MoeConfig)
moe/model_config.py:412
Method__init__
(self, config: MoeConfig = None)
moe/model_config.py:471
Method__init__
(self, data_path, tokenizer, max_length=512)
moe/lm_dataset.py:10
Method__init__
(self, file_path, tokenizer, max_length=4096)
moe/lm_dataset.py:176
Method__init__
(self, jsonl_path, tokenizer, max_length=1024)
moe/lm_dataset.py:284
Method__init__
(self)
graph/base.py:14
Method__init__
(self)
graph/base.py:39
Method__init__
(self, graph)
graph/base.py:64
Method__init__
(self, graph, costs, parents)
graph/undirected_graph.py:13
Method__init__
(self)
graph/directed_graph.py:13
Method__init__
(self, item, next=None)
linklist/base.py:13
Method__init__
(self, head=None)
linklist/base.py:47
Method__init__
(self, dataset, max_len, vocab=None)
llmodels/bert/finetune.py:40
Method__init__
(self, bert)
llmodels/bert/finetune.py:93
Method__init__
(self, val, left=None, right=None)
tree/binary_search_tree.py:13
Method__init__
(self)
tree/binary_search_tree.py:59
Method__init__
(self, item)
tree/red_black_tree.py:20
Method__init__
(self, root)
tree/red_black_tree.py:33
Method__init__
(self)
mqueue/base.py:13
Method__iter__
(self)
tree/binary_search_tree.py:91
Method__len__
(self)
moe/lm_dataset.py:51
Method__len__
(self)
moe/lm_dataset.py:89
Method__len__
(self)
moe/lm_dataset.py:213
Method__len__
(self)
moe/lm_dataset.py:292
Method__len__
(self)
linklist/base.py:127
Method__len__
(self)
llmodels/bert/finetune.py:88
Method__repr__
(self, *args, **kwargs)
hashtable/ht.py:41
Method_cus_hash_2
(self, key)
hashtable/ht.py:21
Method_mp_worker
(self, premise_hypothesis_tokens)
llmodels/bert/finetune.py:66
Functionannouce_blockchain
:param request: :return:
algorithm/distributed_system/pos.py:179
Functionannouce_winner
:param announcements: :param request: :return:
algorithm/distributed_system/pos.py:163
Methodattention_weights
(self)
nlp/transformer.py:197
Functioncandidate
:param candidate_blocks: :return:
algorithm/distributed_system/pos.py:195
Methodcolor
红黑树上色
tree/red_black_tree.py:56
Methoddfs
从一个顶点出发,对图进行深度优先遍历。 :return:
graph/base.py:67
Methodempty
(self)
stack/base.py:29
Methodempty
(self)
graph/base.py:30
Methodempty
(self)
graph/base.py:55
Functionfab
(n)
algorithm/dp/fab.py:7
Methodforward
(self, tokens, segments, valid_lens)
nlp/bert.py:40
Methodforward
(self, X, pred_positions)
nlp/bert.py:59
Methodforward
(self, X)
nlp/bert.py:78
Methodforward
(self, tokens, segments, valid_lens=None, pred_positions=None)
nlp/bert.py:98
Methodforward
(self, queries, keys, values, valid_lens)
nlp/transformer.py:26
Methodforward
(self, X)
nlp/transformer.py:65
Methodforward
(self, X, Y)
nlp/transformer.py:74
Methodforward
(self, X, valid_lens)
nlp/transformer.py:92
Methodforward
(self, X, valid_lens, *args)
nlp/transformer.py:112
Methodforward
(self, X, state)
nlp/transformer.py:143
Methodforward
(self, X, state)
nlp/transformer.py:185
Methodforward
(self, x)
nlp/line_regression.py:15
Methodforward
(self, x)
nlp/no_line_regression.py:18
Methodforward
(self, x)
moe/model_config.py:100
Methodforward
(self, x: torch.Tensor, position_embeddings: Tuple[torch.Tensor, torch.Tensor
moe/model_config.py:181
Methodforward
(self, x: torch.Tensor)
moe/model_config.py:251
Methodforward
(self, hidden_states)
moe/model_config.py:275
Methodforward
(self, x)
moe/model_config.py:331
Methodforward
(self, hidden_states, position_embeddings, past_key_value=None, use_cache=False, attention_mask=None)
moe/model_config.py:399
Methodforward
(self, input_ids: Optional[torch.Tensor] = None, attention_mask: Optional[tor
moe/model_config.py:430
Methodforward
(self, input_ids: Optional[torch.Tensor] = None, attention_mask: Optional[tor
moe/model_config.py:480
Functiongenerate_and_tokenize_prompt
(data_point)
llmodels/alpaca/finetune.py:100
Functionget_tokens_and_segments
Get tokens of the BERT input sqeuence and their segment IDs
nlp/bert.py:9
Methodhandle
(self)
algorithm/distributed_system/pos.py:118
Methodinit_state
(self, enc_outputs, enc_valid_lens, *args)
nlp/transformer.py:182
Methodinsert
(self, k)
heap/min_binary_heap.py:26
Methodinsert
(self, k)
heap/binary_heap.py:26
← previousnext →101–200 of 223, ranked by callers