Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShenDezhou/CAIL
/ functions
Functions
6,528 in github.com/ShenDezhou/CAIL
⨍
Functions
6,528
◇
Types & classes
1,183
↳
Endpoints
4
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
Method
abbr
(obj)
CAIL2020/ydljz/data_helper.py:69
Method
abbr
(obj)
CAIL2020/ydljzs/data_helper.py:69
Method
abbr
(obj)
CAIL2020/ydljztpus/data_helper.py:69
Method
abbr
(obj)
CAIL2020/ydljzt/data_helper.py:69
Method
abbr
(obj)
CAIL2020/ydlj/baseline/tools/data_helper.py:69
Method
abbr
(obj)
CAIL2020/ydljtpu/data_helper.py:80
Method
abbr
(obj)
CAIL2020/ydljztpu/data_helper.py:69
Method
abbr
(obj)
CAIL2020/ydljx/data_helper.py:69
Method
abbr
(obj)
CAIL2020/ydljz(hong)tpu/data_helper.py:69
Method
abbr
(obj)
CAIL2020/ydljy/data_helper.py:69
Method
abbr
(obj)
CAIL2020/ydljz(hong)/data_helper.py:69
Method
accumulate
(grad1, grad2)
CAIL2020/ydlj/baseline/transformers/tests/optimization_tf_test.py:64
Method
accumulate_on_replica
(gradient)
CAIL2020/ydlj/baseline/transformers/tests/optimization_tf_test.py:57
Function
add_end_docstrings
(*docstr)
CAIL2020/ydlj/baseline/transformers/file_utils.py:91
Function
add_start_docstrings
(*docstr)
CAIL2020/ydlj/baseline/transformers/file_utils.py:85
Method
additional_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
Method
additional_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
Method
all_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
Method
all_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
Method
apply_grad
()
CAIL2020/ydlj/baseline/transformers/tests/optimization_tf_test.py:71
Method
apply_on_replica
()
CAIL2020/ydlj/baseline/transformers/tests/optimization_tf_test.py:60
Method
backward_compatible
(self)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl.py:422
Method
backward_compatible
(self)
CAIL2020/ydlj/baseline/transformers/modeling_transfo_xl.py:652
Method
base_model
(self)
CAIL2020/ydlj/baseline/transformers/modeling_utils.py:88
Function
basic_output_function
(data, config, *args, **params)
CAIL2020/sfksz/tools/output_tool.py:10
Function
basic_output_function
(data, config, *args, **params)
CAIL2020/sfkst/output_tool.py:10
Function
basic_output_function
(data, config, *args, **params)
CAIL2020/sfksu/output_tool.py:10
Function
basic_output_function
(data, config, *args, **params)
CAIL2020/sfks/tools/output_tool.py:10
Method
bos_token
Beginning of sentence token (string). Log an error if used while not having been set.
CAIL2020/ydlj/baseline/transformers/tokenization_utils.py:84
Method
bos_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
Method
build
Build shared word embedding layer
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:70
Method
build
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl.py:148
Method
build
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl.py:404
Method
build
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
Method
build
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_bert.py:428
Method
build
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_distilbert.py:582
Method
build
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_roberta.py:231
Method
build
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_xlnet.py:81
Method
build
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_xlnet.py:376
Method
build
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl_utilities.py:48
Method
build
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_xlm.py:615
Method
build
(self, input_shape)
CAIL2020/ydlj/baseline/transformers/modeling_tf_ctrl.py:444
Method
build_corpus
(self, path, dataset)
CAIL2020/ydlj/baseline/transformers/tokenization_transfo_xl.py:494
Method
build_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
Method
build_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
Method
build_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
Method
build_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
Function
burnin_schedule
(i)
CAIL2020/cocr/rec_train.py:91
Method
call
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
Method
call
(self, inputs, training=False)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:178
Method
call
(self, inputs, training=False)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:234
Method
call
(self, inputs, training=False)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:259
Method
call
(self, inputs, training=False)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:332
Method
call
(self, inputs, training=False)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:359
Method
call
(self, inputs, training=False)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:397
Method
call
(self, hidden_states)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:476
Method
call
(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
Method
call
(self, inputs, **kwargs)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:733
Method
call
(self, inputs, **kwargs)
CAIL2020/ydlj/baseline/transformers/modeling_tf_albert.py:784
Method
call
(self, pos_seq, bsz=None)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl.py:49
← previous
next →
4,101–4,200 of 6,528, ranked by callers