MCPcopy Create free account

hub / github.com/ShenDezhou/CAIL / functions

Functions6,528 in github.com/ShenDezhou/CAIL

Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer}
CAIL2020/ydlj/baseline/transformers/modeling_ctrl.py:305
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTraine
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:613
Method_prune_heads
(self, heads)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl.py:430
Method_prune_heads
(self, heads_to_prune)
CAIL2020/ydlj/baseline/transformers/modeling_xlnet.py:625
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer}
CAIL2020/ydlj/baseline/transformers/modeling_tf_openai.py:226
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTraine
CAIL2020/ydlj/baseline/transformers/modeling_tf_bert.py:479
Method_prune_heads
(self, heads)
CAIL2020/ydlj/baseline/transformers/modeling_transfo_xl.py:660
Method_prune_heads
(self, heads_to_prune)
CAIL2020/ydlj/baseline/transformers/modeling_tf_distilbert.py:413
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTraine
CAIL2020/ydlj/baseline/transformers/modeling_bert.py:629
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer}
CAIL2020/ydlj/baseline/transformers/modeling_tf_gpt2.py:228
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer}
CAIL2020/ydlj/baseline/transformers/modeling_gpt2.py:373
Method_prune_heads
(self, heads_to_prune)
CAIL2020/ydlj/baseline/transformers/modeling_tf_xlnet.py:385
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} ALBERT has a different a
CAIL2020/ydlj/baseline/transformers/modeling_albert.py:485
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTraine
CAIL2020/ydlj/baseline/transformers/modeling_tf_xlm.py:286
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer}
CAIL2020/ydlj/baseline/transformers/modeling_openai.py:375
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer}
CAIL2020/ydlj/baseline/transformers/modeling_tf_ctrl.py:201
Method_read
(self, n=-1)
CAIL2020/ydlj/baseline/transformers/hf_api.py:176
Method_resize_token_embeddings
(self, new_num_tokens)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:610
Method_resize_token_embeddings
(self, new_num_tokens)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl.py:419
Method_resize_token_embeddings
(self, new_num_tokens)
CAIL2020/ydlj/baseline/transformers/modeling_tf_openai.py:223
Method_resize_token_embeddings
(self, new_num_tokens)
CAIL2020/ydlj/baseline/transformers/modeling_tf_bert.py:476
Method_resize_token_embeddings
(self, new_num_tokens)
CAIL2020/ydlj/baseline/transformers/modeling_tf_distilbert.py:410
Method_resize_token_embeddings
(self, new_num_tokens)
CAIL2020/ydlj/baseline/transformers/modeling_tf_gpt2.py:225
Method_resize_token_embeddings
(self, new_num_tokens)
CAIL2020/ydlj/baseline/transformers/modeling_tf_xlnet.py:382
Method_resize_token_embeddings
(self, new_num_tokens)
CAIL2020/ydlj/baseline/transformers/modeling_albert.py:479
Method_resize_token_embeddings
(self, new_num_tokens)
CAIL2020/ydlj/baseline/transformers/modeling_tf_xlm.py:283
Method_resize_token_embeddings
(self, new_num_tokens)
CAIL2020/ydlj/baseline/transformers/modeling_tf_ctrl.py:198
Method_resource_apply_dense
(self, grad, var, apply_state=None)
CAIL2020/ydlj/baseline/transformers/optimization_tf.py:158
Method_resource_apply_sparse
(self, grad, var, indices, apply_state=None)
CAIL2020/ydlj/baseline/transformers/optimization_tf.py:165
Function_resumable_file_manager
()
CAIL2020/ydlj/baseline/transformers/file_utils.py:314
Method_tokenize
Tokenize a string.
CAIL2020/ydlj/baseline/transformers/tokenization_openai.py:160
Method_tokenize
Tokenize a string. return_unicode is used only for py2
CAIL2020/ydlj/baseline/transformers/tokenization_albert.py:129
Method_tokenize
Tokenize a string. Args: - add_prefix_space (boolean, default False): Begin the sentence with at leas
CAIL2020/ydlj/baseline/transformers/tokenization_gpt2.py:185
Method_tokenize
(self, line, add_eos=False, add_double_eos=False)
CAIL2020/ydlj/baseline/transformers/tokenization_transfo_xl.py:252
Method_tokenize
Tokenize a string.
CAIL2020/ydlj/baseline/transformers/tokenization_ctrl.py:192
Method_tokenize
Tokenize a string given language code. For Chinese, Japanese and Thai, we use a language specific tokenizerself. Otherwise, we use Moses.
CAIL2020/ydlj/baseline/transformers/tokenization_xlm.py:664
Method_tokenize
Tokenize a string. return_unicode is used only for py2
CAIL2020/ydlj/baseline/transformers/tokenization_xlnet.py:131
Method_tokenize
(self, text)
CAIL2020/ydlj/baseline/transformers/tokenization_bert_japanese.py:143
Method_tokenize
(self, text)
CAIL2020/ydlj/baseline/transformers/tokenization_bert.py:173
Method_tokenize
(self, text)
CAIL2020/ydlj/baseline/transformers/tokenization_camembert.py:130
Methodabbr
(obj)
CAIL2020/ydljz/data_helper.py:69
Methodabbr
(obj)
CAIL2020/ydljzs/data_helper.py:69
Methodabbr
(obj)
CAIL2020/ydljztpus/data_helper.py:69
Methodabbr
(obj)
CAIL2020/ydljzt/data_helper.py:69
Methodabbr
(obj)
CAIL2020/ydlj/baseline/tools/data_helper.py:69
Methodabbr
(obj)
CAIL2020/ydljtpu/data_helper.py:80
Methodabbr
(obj)
CAIL2020/ydljztpu/data_helper.py:69
Methodabbr
(obj)
CAIL2020/ydljx/data_helper.py:69
Methodabbr
(obj)
CAIL2020/ydljz(hong)tpu/data_helper.py:69
Methodabbr
(obj)
CAIL2020/ydljy/data_helper.py:69
Methodabbr
(obj)
CAIL2020/ydljz(hong)/data_helper.py:69
Methodaccumulate
(grad1, grad2)
CAIL2020/ydlj/baseline/transformers/tests/optimization_tf_test.py:64
Methodaccumulate_on_replica
(gradient)
CAIL2020/ydlj/baseline/transformers/tests/optimization_tf_test.py:57
Functionadd_end_docstrings
(*docstr)
CAIL2020/ydlj/baseline/transformers/file_utils.py:91
Functionadd_start_docstrings
(*docstr)
CAIL2020/ydlj/baseline/transformers/file_utils.py:85
Methodadditional_special_tokens
All the additional special tokens you may want to use (list of strings). Log an error if used while not having been set.
CAIL2020/ydlj/baseline/transformers/tokenization_utils.py:133
Methodadditional_special_tokens_ids
Ids of all the additional special tokens in the vocabulary (list of integers). Log an error if used while not having been set.
CAIL2020/ydlj/baseline/transformers/tokenization_utils.py:212
Methodall_special_ids
List the vocabulary indices of the special tokens ('<unk>', '<cls>'...) mapped to class attributes (cls_token, unk_token...).
CAIL2020/ydlj/baseline/transformers/tokenization_utils.py:1219
Methodall_special_tokens
List all the special tokens ('<unk>', '<cls>'...) mapped to class attributes (cls_token, unk_token...).
CAIL2020/ydlj/baseline/transformers/tokenization_utils.py:1207
Methodapply_grad
()
CAIL2020/ydlj/baseline/transformers/tests/optimization_tf_test.py:71
Methodapply_on_replica
()
CAIL2020/ydlj/baseline/transformers/tests/optimization_tf_test.py:60
Methodbackward_compatible
(self)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl.py:422
Methodbackward_compatible
(self)
CAIL2020/ydlj/baseline/transformers/modeling_transfo_xl.py:652
Methodbase_model
(self)
CAIL2020/ydlj/baseline/transformers/modeling_utils.py:88
Functionbasic_output_function
(data, config, *args, **params)
CAIL2020/sfksz/tools/output_tool.py:10
Functionbasic_output_function
(data, config, *args, **params)
CAIL2020/sfkst/output_tool.py:10
Functionbasic_output_function
(data, config, *args, **params)
CAIL2020/sfksu/output_tool.py:10
Functionbasic_output_function
(data, config, *args, **params)
CAIL2020/sfks/tools/output_tool.py:10
Methodbos_token
Beginning of sentence token (string). Log an error if used while not having been set.
CAIL2020/ydlj/baseline/transformers/tokenization_utils.py:84
Methodbos_token_id
Id of the beginning of sentence token in the vocabulary. Log an error if used while not having been set.
CAIL2020/ydlj/baseline/transformers/tokenization_utils.py:172
Methodbuild
Build shared word embedding layer
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:70
Methodbuild
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl.py:148
Methodbuild
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl.py:404
Methodbuild
Build shared word embedding layer Shared weights logic adapted from https://github.com/tensorflow/models/blob/a009f4fb9d2fc4949e32
CAIL2020/ydlj/baseline/transformers/modeling_tf_utils.py:354
Methodbuild
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_bert.py:428
Methodbuild
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_distilbert.py:582
Methodbuild
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_roberta.py:231
Methodbuild
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_xlnet.py:81
Methodbuild
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_xlnet.py:376
Methodbuild
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl_utilities.py:48
Methodbuild
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_xlm.py:615
Methodbuild
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_ctrl.py:444
Methodbuild_corpus
(self, path, dataset)
CAIL2020/ydlj/baseline/transformers/tokenization_transfo_xl.py:494
Methodbuild_inputs_with_special_tokens
Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and adding special tokens
CAIL2020/ydlj/baseline/transformers/tokenization_roberta.py:96
Methodbuild_inputs_with_special_tokens
Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and adding special tokens
CAIL2020/ydlj/baseline/transformers/tokenization_xlnet.py:186
Methodbuild_inputs_with_special_tokens
Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and adding special tokens
CAIL2020/ydlj/baseline/transformers/tokenization_bert.py:196
Methodbuild_inputs_with_special_tokens
Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and adding special tokens
CAIL2020/ydlj/baseline/transformers/tokenization_camembert.py:71
Functionburnin_schedule
(i)
CAIL2020/cocr/rec_train.py:91
Methodcall
Get token embeddings of inputs. Args: inputs: list of three int64 tensors with shape [batch_size, length]: (input_ids, position_id
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:81
Methodcall
(self, inputs, training=False)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:178
Methodcall
(self, inputs, training=False)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:234
Methodcall
(self, inputs, training=False)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:259
Methodcall
(self, inputs, training=False)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:332
Methodcall
(self, inputs, training=False)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:359
Methodcall
(self, inputs, training=False)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:397
Methodcall
(self, hidden_states)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:476
Methodcall
(self, inputs, attention_mask=None, token_type_ids=None, position_ids=None, head_mask=None, inputs_embeds=None
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:620
Methodcall
(self, inputs, **kwargs)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:733
Methodcall
(self, inputs, **kwargs)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:784
Methodcall
(self, pos_seq, bsz=None)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl.py:49
← previousnext →4,101–4,200 of 6,528, ranked by callers