MCPcopy Create free account

hub / github.com/SCLBD/MCG-Blackbox / functions

Functions327 in github.com/SCLBD/MCG-Blackbox

↓ 13 callersMethodwrite
Write text to stdout (and a file) and optionally flush.
utils/commons.py:80
↓ 12 callersMethod__init__
(self, num_channels)
models/modules.py:20
↓ 10 callersMethoddecode
(self, x, y, logdet=0.0, eps_std=1.0, zs=None)
models/cglow.py:171
↓ 9 callersMethodadd
(self, image, label, logits=None, score=None)
utils/buffer.py:122
↓ 7 callersMethodpyramidal_make_layer
(self, block, block_depth, stride=1)
surro_models/cifar10_models/pyramidnet.py:189
↓ 6 callersMethodlogp
(mean, logs, x)
models/modules.py:388
↓ 5 callersFunctionpreprocess
(x, scale, bias, bins, noise=False)
utils/tools.py:9
↓ 5 callersMethodprior
(self)
models/cglow.py:237
↓ 5 callersFunctionsplit_feature
type = ["split", "cross"]
models/modules.py:7
↓ 5 callersMethodtrain
(self)
trainners/Learner.py:103
↓ 4 callersMethod__init__
(self, in_channels, out_channels)
surro_models/cifar10_models/shufflenetv2.py:59
↓ 4 callersMethod_make_dense_layers
(self, block, in_planes, nblock)
surro_models/cifar10_models/densenet.py:68
↓ 4 callersMethod_make_layer
(self, block, planes, num_blocks, stride)
surro_models/cifar10_models/senet.py:92
↓ 4 callersMethod_make_layer
(self, in_planes, out_planes, num_blocks, dense_depth, stride)
surro_models/cifar10_models/dpn.py:53
↓ 4 callersMethod_make_layer
(self, block, planes, num_blocks, stride)
surro_models/cifar10_models/preact_resnet.py:77
↓ 4 callersMethod_make_layer
(self, block, planes, num_blocks, stride)
surro_models/cifar10_models/resnet.py:80
↓ 4 callersMethodencode
(self, x, y, logdet=0.0, return_z=False)
models/cglow.py:149
↓ 4 callersMethodperturb
(self, x, y)
attacks/ifgsm_attack.py:94
↓ 3 callersFunctionPreActResNet18
()
surro_models/cifar10_models/preact_resnet.py:97
↓ 3 callersFunctionResNet18
()
surro_models/cifar10_models/resnet.py:100
↓ 3 callersMethod__init__
(self, in_planes, out_planes, stride=1)
surro_models/cifar10_models/pnasnet.py:25
↓ 3 callersMethod_make_layer
(self, num_blocks, stride)
surro_models/cifar10_models/resnext.py:55
↓ 3 callersMethod_make_layer
(self, planes, num_cells)
surro_models/cifar10_models/pnasnet.py:88
↓ 3 callersMethod_make_layer
(self, out_channels, num_blocks)
surro_models/cifar10_models/shufflenetv2.py:114
↓ 3 callersMethod_make_layer
(self, out_planes, num_blocks, groups)
surro_models/cifar10_models/shufflenet.py:66
↓ 3 callersMethodflush
Flush written text to both stdout and a file, if open.
utils/commons.py:95
↓ 3 callersMethodforward
(self, input, logdet=0, reverse=False)
models/modules.py:30
↓ 3 callersFunctionget_obj_from_module
Traverses the object name and returns the last (rightmost) python object.
utils/commons.py:279
↓ 3 callersFunctionlatent_operate
Black-optimization optimize both latent and latent_vec
models/flow_latent.py:5
↓ 3 callersFunctionload_cifar_model
(model_name, home_path='checkpoints/cifar10_target_models/', require_optim=False, defence_method=None)
utils/load_models.py:112
↓ 3 callersMethodsample
(self, x, eps_std=1.0)
models/cglow.py:266
↓ 3 callersMethodsample
(mean, logs, eps_std=None)
models/modules.py:393
↓ 2 callersFunctionDenseNet121
()
surro_models/cifar10_models/densenet.py:86
↓ 2 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None)
surro_models/cifar10_models/pyramidnet.py:17
↓ 2 callersMethod__init__
(self, block, num_blocks, num_classes=10)
surro_models/cifar10_models/senet.py:80
↓ 2 callersMethod__init__
(self, block, nblocks, growth_rate=12, reduction=0.5, num_classes=10)
surro_models/cifar10_models/densenet.py:37
↓ 2 callersMethod__init__
(self, in_planes, out_planes, stride, dropRate=0.0)
surro_models/cifar10_models/wrn.py:8
↓ 2 callersMethod__init__
(self, in_planes, out_planes, stride, groups)
surro_models/cifar10_models/shufflenet.py:23
↓ 2 callersMethod__init__
(self, in_planes, planes, stride=1)
surro_models/cifar10_models/preact_resnet.py:16
↓ 2 callersMethod__init__
(self, block, num_blocks, num_classes=10)
surro_models/cifar10_models/resnet.py:68
↓ 2 callersMethod__init__
(self, x_size, y_size, x_hidden_channels, x_hidden_size, y_hidden_channels, K, L, down_sample_x,
models/cglow.py:81
↓ 2 callersMethod_downsample
(self, planes)
surro_models/cifar10_models/pnasnet.py:95
↓ 2 callersFunctionadv_loss
(adv_models, y, label, targeted, class_num)
utils/finetune.py:75
↓ 2 callersMethodadv_loss
(self, y, label)
trainners/MetaLearner.py:107
↓ 2 callersMethodattack
(self, loss_func, x, y, init=None, buffer=None, **kwargs)
attacks/cgattack.py:42
↓ 2 callersMethodbatchsampleR
(batchsize, mean, logs, eps_std=None)
models/modules.py:421
↓ 2 callersMethodclear
(self)
utils/buffer.py:163
↓ 2 callersMethodclose
Flush, close possible files, and remove stdout/stderr mirroring.
utils/commons.py:102
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
surro_models/cifar10_models/pyramidnet.py:8
↓ 2 callersMethodforward_loss
(self, surrogate_model, optimizer, images, target_logits, labels)
utils/surrogate_trainer.py:57
↓ 2 callersMethodget_average
(self, show_all=False)
utils/attack_count.py:25
↓ 2 callersMethodget_first_success
(self)
utils/attack_count.py:40
↓ 2 callersMethodget_median
(self)
utils/attack_count.py:34
↓ 2 callersFunctionget_module_from_obj_name
Searches for the underlying module behind the name to some python object. Returns the module and the object name (original name with module part r
utils/commons.py:238
↓ 2 callersMethodget_success_rate
(self)
utils/attack_count.py:46
↓ 2 callersMethodinput_diversity
(self, img)
attacks/ifgsm_attack.py:207
↓ 2 callersFunctioniter_graph
(root, callback)
utils/finetune.py:7
↓ 2 callersMethodlength
(self)
utils/buffer.py:103
↓ 2 callersMethodlength
(self)
utils/buffer.py:160
↓ 2 callersFunctionpyramid_net110
()
surro_models/cifar10_models/pyramidnet.py:241
↓ 2 callersMethodsampleR
(mean, logs, eps_std=None)
models/modules.py:411
↓ 2 callersMethodsample_batch
(self, batch_size)
utils/buffer.py:141
↓ 2 callersFunctionsave_model
(model, optim, dir, iteration)
utils/tools.py:20
↓ 2 callersMethodsplit2d_prior
(self, z)
models/modules.py:356
↓ 1 callersFunctionDPN92
()
surro_models/cifar10_models/dpn.py:82
↓ 1 callersFunctionPNASNetB
()
surro_models/cifar10_models/pnasnet.py:115
↓ 1 callersFunctionResNeXt29_2x64d
()
surro_models/cifar10_models/resnext.py:77
↓ 1 callersFunctionSENet18
()
surro_models/cifar10_models/senet.py:112
↓ 1 callersFunctionShuffleNetG2
()
surro_models/cifar10_models/shufflenet.py:86
↓ 1 callersMethod__init__
(self)
utils/load_models.py:201
↓ 1 callersMethod__init__
(self, in_planes, cardinality=32, bottleneck_width=4, stride=1)
surro_models/cifar10_models/resnext.py:14
↓ 1 callersMethod__init__
(self, cfg)
surro_models/cifar10_models/dpn.py:39
↓ 1 callersMethod__init__
(self, in_planes, out_planes, stride=1)
surro_models/cifar10_models/mobilenet.py:13
↓ 1 callersMethod__init__
(self, in_planes, out_planes, expansion, stride)
surro_models/cifar10_models/mobilenetv2.py:13
↓ 1 callersMethod__init__
(self, in_planes, n1x1, n3x3red, n3x3, n5x5red, n5x5, pool_planes)
surro_models/cifar10_models/googlenet.py:8
↓ 1 callersFunction_batch_multiply_tensor_by_vector
(vector, batch_tensor)
attacks/ifgsm_attack.py:8
↓ 1 callersFunction_get_norm_batch
(x, p)
attacks/ifgsm_attack.py:23
↓ 1 callersMethod_make_layer
(self, block, in_planes, out_planes, nb_layers, stride, dropRate)
surro_models/cifar10_models/wrn.py:37
↓ 1 callersMethod_make_layers
(self, in_planes)
surro_models/cifar10_models/mobilenet.py:37
↓ 1 callersMethod_make_layers
(self, cfg)
surro_models/cifar10_models/vgg.py:26
↓ 1 callersMethod_make_layers
(self, in_planes)
surro_models/cifar10_models/mobilenetv2.py:60
↓ 1 callersMethodadd_clean
(self, clean_images, clean_logits, labels)
utils/buffer.py:47
↓ 1 callersFunctionattack
()
attack.py:13
↓ 1 callersMethodaugmentation
(self, x, true_lab, no_adv=False)
trainners/MetaLearner.py:134
↓ 1 callersFunctionbatch_multiply
(float_or_vector, tensor)
attacks/ifgsm_attack.py:12
↓ 1 callersMethodbatchsample
(batchsize, mean, logs, eps_std=None)
models/modules.py:402
↓ 1 callersFunctioncall_func_by_name
Finds the python object with the given name and calls it as a function.
utils/commons.py:295
↓ 1 callersFunctioncifar10
(root, mode='train')
data/datasets.py:83
↓ 1 callersMethodcompute_kernel_size
(in_size, out_size, stride)
models/modules.py:65
↓ 1 callersFunctioncount_parameters
(model)
utils/tools.py:5
↓ 1 callersFunctiondensenet_cifar
()
surro_models/cifar10_models/densenet.py:98
↓ 1 callersFunctiondownsample_dct_interface
(scale=4.)
models/cglow.py:56
↓ 1 callersFunctionfinetune_latent
(generator, adv_models, images, labels, latent, args, iteration=10, lr=0.01)
utils/finetune.py:132
↓ 1 callersFunctiongenerate_interface
(G, latent_op, linf)
models/flow_latent.py:49
↓ 1 callersMethodgenerator_loss_interface
(generate_function, image_loss_function, targeted)
attacks/cgattack.py:30
↓ 1 callersMethodget_Gaussian_kernel
(self, x)
attacks/ifgsm_attack.py:227
↓ 1 callersFunctionget_obj_by_name
Finds the python object with the given name.
utils/commons.py:289
↓ 1 callersMethodget_weight
(self, x, y, reverse)
models/modules.py:166
↓ 1 callersFunctionimagenet
(root, mode='train')
data/datasets.py:59
↓ 1 callersFunctionis_top_level_function
Determine whether the given object is a top-level function, i.e., defined at module scope using 'def'.
utils/commons.py:314
next →1–100 of 327, ranked by callers