Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dayu11/Differentially-Private-Deep-Learning
/ functions
Functions
3,168 in github.com/dayu11/Differentially-Private-Deep-Learning
⨍
Functions
3,168
◇
Types & classes
374
↓ 340 callers
Method
size
(self, index)
language/bert/bert_code/fairseq/data/list_dataset.py:25
↓ 203 callers
Function
print
(*args, **kwargs)
language/bert/bert_code/fairseq/distributed_utils.py:103
↓ 131 callers
Method
log
Log intermediate stats according to log_interval.
language/bert/bert_code/fairseq/progress_bar.py:91
↓ 97 callers
Function
__Pyx_AddTraceback
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:25869
↓ 92 callers
Method
pad
Helper to get index of pad symbol
language/bert/bert_code/fairseq/data/dictionary.py:169
↓ 85 callers
Function
__Pyx_AddTraceback
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:23118
↓ 73 callers
Method
eos
Helper to get index of end-of-sentence symbol
language/bert/bert_code/fairseq/data/dictionary.py:173
↓ 67 callers
Method
write
(self, sizes)
language/bert/bert_code/fairseq/data/indexed_dataset.py:379
↓ 52 callers
Function
__Pyx_PyObject_GetAttrStr
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:23027
↓ 48 callers
Function
__Pyx_PyObject_Call
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:23735
↓ 44 callers
Method
write
(self, data)
language/bert/bert_code/preprocess/pretrain/WikiExtractor.py:2404
↓ 43 callers
Function
__Pyx_PyObject_Call
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:21115
↓ 43 callers
Method
exists
(path)
language/bert/bert_code/fairseq/data/indexed_dataset.py:172
↓ 42 callers
Function
__Pyx_PyObject_GetAttrStr
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:20378
↓ 42 callers
Method
update
Updates counts from new dictionary.
language/bert/bert_code/fairseq/data/dictionary.py:107
↓ 39 callers
Function
__Pyx_Raise
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:24373
↓ 37 callers
Function
__Pyx_Raise
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:21604
↓ 32 callers
Function
eval
(model)
language/bert/bert_code/fairseq/utils.py:347
↓ 31 callers
Function
__Pyx_PyObject_IsTrue
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:24898
↓ 30 callers
Function
__Pyx_PyObject_IsTrue
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:27672
↓ 28 callers
Method
bos
Helper to get index of beginning-of-sentence symbol
language/bert/bert_code/fairseq/data/dictionary.py:165
↓ 28 callers
Method
start
(self)
language/bert/bert_code/fairseq/meters.py:58
↓ 27 callers
Function
LayerNorm
(normalized_shape, eps=1e-5, elementwise_affine=True, export=False)
language/bert/bert_code/fairseq/modules/layer_norm.py:9
↓ 27 callers
Function
__Pyx_SafeReleaseBuffer
BufferGetAndValidate */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:23568
↓ 27 callers
Method
close
(self)
language/bert/bert_code/preprocess/pretrain/WikiExtractor.py:2408
↓ 27 callers
Method
unk
Helper to get index of unk symbol
language/bert/bert_code/fairseq/data/dictionary.py:177
↓ 26 callers
Method
apply
language/bert/bert_code/fastbpe/fastBPE/fastBPE.hpp:688
↓ 25 callers
Method
expand
:param wikitext: the text to be expanded. Templates are frequently nested. Occasionally, parsing mistakes may cause template
language/bert/bert_code/preprocess/pretrain/WikiExtractor.py:781
↓ 25 callers
Method
update
(self, val=1)
language/bert/bert_code/fairseq/meters.py:41
↓ 23 callers
Function
__Pyx_PyObject_CallOneArg
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:23830
↓ 22 callers
Method
load
Loads the dictionary from a text file with the format: ``` <symbol0> <count0> <symbol1> <count1> ... ```
language/bert/bert_code/fairseq/data/dictionary.py:182
↓ 21 callers
Method
add
(self, ref, pred)
language/bert/bert_code/fairseq/bleu.py:75
↓ 21 callers
Method
get_meter
Get a specific meter by name.
language/bert/bert_code/fairseq/trainer.py:708
↓ 20 callers
Function
process_batch_grad
(batch_grad, scale)
language/bert/bert_code/fairseq/lrk_utils.py:6
↓ 19 callers
Function
__Pyx_RaiseArgtupleInvalid
RaiseArgTupleInvalid */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:24531
↓ 19 callers
Method
add_symbol
Adds a word to the dictionary
language/bert/bert_code/fairseq/data/dictionary.py:94
↓ 18 callers
Method
encode_line
(self, line, line_tokenizer=tokenize_line, add_if_not_exist=True, consumer=None, append_eo
language/bert/bert_code/fairseq/data/dictionary.py:251
↓ 18 callers
Method
mean
(self)
language/bert/prv_accountant/prv_accountant/privacy_random_variables.py:24
↓ 17 callers
Function
__Pyx_PyInt_From_enum__NPY_TYPES
CIntToPy */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:26675
↓ 17 callers
Function
__Pyx_PyInt_From_enum__NPY_TYPES
CIntToPy */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:23678
↓ 17 callers
Function
__Pyx_PyObject_CallOneArg
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:21194
↓ 17 callers
Method
state_dict
(self)
language/bert/bert_code/fairseq/optim/bmuf.py:87
↓ 16 callers
Function
Linear
Weight-normalized Linear layer (input: N x T x C)
language/bert/bert_code/fairseq/models/fconv_self_att.py:503
↓ 16 callers
Method
backward
(ctx, grad)
language/bert/bert_code/fairseq/modules/scalar_bias.py:26
↓ 16 callers
Method
clear
language/bert/bert_code/corpus_graph/common.h:68
↓ 16 callers
Function
die
language/bert/bert_code/corpus_graph/common.h:99
↓ 16 callers
Method
insert
language/bert/bert_code/corpus_graph/common.h:55
↓ 15 callers
Method
encoder
(self)
language/bert/bert_code/fairseq/models/fairseq_model.py:334
↓ 15 callers
Method
train
(mode=True)
language/bert/bert_code/fairseq/models/fairseq_model.py:123
↓ 14 callers
Function
__Pyx_RaiseArgtupleInvalid
RaiseArgTupleInvalid */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:21440
↓ 14 callers
Function
__Pyx_TypeTest
ExtTypeTest */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:23920
↓ 14 callers
Method
decoder
(self)
language/bert/bert_code/fairseq/models/fairseq_model.py:338
↓ 14 callers
Method
get_num_updates
Get the number of parameters updates.
language/bert/bert_code/fairseq/trainer.py:714
↓ 14 callers
Method
set_lr
(self, lr)
language/bert/bert_code/fairseq/optim/bmuf.py:84
↓ 14 callers
Method
string
Helper for converting a tensor of token indices to a string. Can optionally remove BPE symbols or escape <unk> words.
language/bert/bert_code/fairseq/data/dictionary.py:67
↓ 13 callers
Function
__Pyx_AddTraceback
language/bert/bert_code/fastbpe/fastBPE/fastBPE.cpp:3779
↓ 13 callers
Function
__Pyx_PyInt_From_npy_int64
CIntToPy */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:25994
↓ 13 callers
Method
encode
(self, sentence: str)
language/bert/bert_code/fairseq/hub_utils.py:201
↓ 13 callers
Method
half
(self)
language/bert/bert_code/fairseq/modules/lightconv_layer/lightconv_layer.py:117
↓ 13 callers
Method
zero_grad
(self)
language/bert/bert_code/fairseq/trainer.py:677
↓ 12 callers
Function
Linear
(in_features, out_features, bias=True)
language/bert/bert_code/fairseq/models/lightconv.py:657
↓ 12 callers
Function
__Pyx_GetBuiltinName
GetBuiltinName */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:20391
↓ 12 callers
Function
__Pyx_PyInt_From_int
CIntToPy */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:26644
↓ 12 callers
Function
__Pyx_PyInt_From_int
CIntToPy */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:23647
↓ 12 callers
Function
__Pyx_PyObject_GetAttrStr
language/bert/bert_code/fastbpe/fastBPE/fastBPE.cpp:2772
↓ 12 callers
Function
log
(x)
language/bert/prv_accountant/prv_accountant/privacy_random_variables.py:15
↓ 12 callers
Method
pop
(self)
language/bert/bert_code/preprocess/pretrain/WikiExtractor.py:478
↓ 11 callers
Function
__Pyx_GetBuiltinName
GetBuiltinName */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:23040
↓ 11 callers
Function
__Pyx_PyObject_Call2Args
PyObjectCall2Args */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:24091
↓ 11 callers
Method
dt
(self)
language/bert/prv_accountant/prv_accountant/domain.py:62
↓ 11 callers
Method
get_lr
(self)
language/bert/bert_code/fairseq/optim/bmuf.py:81
↓ 11 callers
Method
max_positions
Maximum input length supported by the encoder.
language/bert/bert_code/fairseq/models/lstm.py:270
↓ 11 callers
Method
t
(self, i: int)
language/bert/prv_accountant/prv_accountant/domain.py:59
↓ 11 callers
Method
t_min
(self)
language/bert/prv_accountant/prv_accountant/domain.py:65
↓ 9 callers
Function
Linear
Weight-normalized Linear layer (input: B x T x C)
language/bert/bert_code/fairseq/modules/downsampled_multihead_attention.py:240
↓ 9 callers
Function
Linear
Weight-normalized Linear layer (input: N x T x C)
language/bert/bert_code/fairseq/models/fconv.py:575
↓ 9 callers
Function
__Pyx_TypeTest
ExtTypeTest */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:21804
↓ 9 callers
Method
get_targets
(self, *unused)
language/bert/bert_code/fairseq/criterions/composite_loss.py:52
↓ 9 callers
Method
max_positions
Maximum length supported by the model.
language/bert/bert_code/fairseq/models/fairseq_model.py:57
↓ 9 callers
Method
reset
(self, one_init=False)
language/bert/bert_code/fairseq/bleu.py:69
↓ 9 callers
Method
step
Take a single search step. Args: step: the current search step, starting at 0 lprobs: (bsz x input_beam_size x vocab_
language/bert/bert_code/fairseq/search.py:28
↓ 9 callers
Method
t_max
(self)
language/bert/prv_accountant/prv_accountant/domain.py:68
↓ 9 callers
Function
ucfirst
:return: a string with just its first character uppercase We can't use title() since it coverts all words.
language/bert/bert_code/preprocess/pretrain/WikiExtractor.py:1625
↓ 8 callers
Function
__Pyx_ParseOptionalKeywords
ParseKeywords */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:24571
↓ 8 callers
Function
__pyx_memviewslice_is_contig
MemviewSliceIsContig */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:25923
↓ 8 callers
Function
__pyx_memviewslice_is_contig
MemviewSliceIsContig */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:23172
↓ 8 callers
Method
all_reduce
(params)
language/bert/bert_code/fairseq/legacy_distributed_data_parallel.py:96
↓ 8 callers
Method
cdf
(self, t)
language/bert/prv_accountant/prv_accountant/privacy_random_variables.py:35
↓ 8 callers
Method
cumsum
(sequence, sample_ratios)
language/bert/bert_code/fairseq/data/concat_dataset.py:16
↓ 8 callers
Function
dataset_dest_file
(args, output_prefix, lang, extension)
language/bert/bert_code/preprocess.py:334
↓ 8 callers
Method
decode
(self, sentence: str)
language/bert/bert_code/fairseq/hub_utils.py:204
↓ 8 callers
Method
get_criterion
Get the (non-wrapped) criterion instance.
language/bert/bert_code/fairseq/trainer.py:704
↓ 8 callers
Method
load_state_dict
(self, state_dict, optimizer_overrides=None)
language/bert/bert_code/fairseq/optim/bmuf.py:90
↓ 8 callers
Method
maybe_layer_norm
(self, i, x, before=False, after=False)
language/bert/bert_code/fairseq/models/lightconv.py:505
↓ 8 callers
Method
ts
Array of all node coordinates in the domain
language/bert/prv_accountant/prv_accountant/domain.py:71
↓ 7 callers
Function
__Pyx_Import
Import */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:24789
↓ 7 callers
Function
__Pyx_PyBool_FromLong
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:27815
↓ 7 callers
Function
__Pyx_PyBool_FromLong
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:25041
↓ 7 callers
Function
__Pyx_PyInt_From_long
CIntToPy */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:23308
↓ 7 callers
Function
__Pyx_PyObject_Call2Args
PyObjectCall2Args */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:21134
next →
1–100 of 3,168, ranked by callers