MCPcopy Create free account

hub / github.com/Trustworthy-AI-Group/TransferAttack / functions

Functions2,264 in github.com/Trustworthy-AI-Group/TransferAttack

↓ 1 callersFunctionzero_grad
(model_params)
defense/diffpure/guided_diffusion/fp16_util.py:141
MethodDI
Random transform the input images
transferattack/input_transformation/odi/odi.py:90
MethodDI_Resize
(self, x, resize_rate=1.15, diversity_prob=0.5)
transferattack/gradient/fgsra.py:136
FunctionPYBIND11_MODULE
defense/diffpure/score_sde/op/fused_bias_act.cpp:27
FunctionPYBIND11_MODULE
defense/diffpure/score_sde/op/upfirdn2d.cpp:29
MethodT
End time of the SDE.
defense/diffpure/score_sde/sde_lib.py:29
MethodT
(self)
defense/diffpure/score_sde/sde_lib.py:98
MethodT
(self)
defense/diffpure/score_sde/sde_lib.py:140
MethodT
(self)
defense/diffpure/score_sde/sde_lib.py:190
MethodT
(self)
defense/diffpure/score_sde/sde_lib.py:231
FunctionT2t_vit_10
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit.py:192
FunctionT2t_vit_12
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit.py:203
FunctionT2t_vit_14
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit.py:215
FunctionT2t_vit_14_resnext
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit.py:282
FunctionT2t_vit_14_se
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit_se.py:160
FunctionT2t_vit_14_wide
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit.py:293
FunctionT2t_vit_16_ghost
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit_ghost.py:188
FunctionT2t_vit_19
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit.py:226
FunctionT2t_vit_24
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit.py:237
FunctionT2t_vit_7
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit.py:182
FunctionT2t_vit_dense
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit_dense.py:163
FunctionT2t_vit_t_14
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit.py:248
FunctionT2t_vit_t_19
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit.py:259
FunctionT2t_vit_t_24
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/t2t_vit.py:270
FunctionWrapped_Attention_forward_REST_Attack
REST Attack implementation: This attack concatenates benign image features with adversarial examples.
transferattack/model_related/ll2s.py:103
FunctionWrapped_Attention_forward_Shuffle_Attack
Shuffle Attack implementation This attack randomly shuffles attention weights across different heads
transferattack/model_related/ll2s.py:218
FunctionWrapped_Attention_forward_Sparse_Attack
Sparse Attack implementation This attack randomly masks attention weights to disrupt attention patterns
transferattack/model_related/ll2s.py:184
FunctionWrapper_FFN_forward_MoE_Attack
Mixture of Experts (MoE) Attack implementation This attack simulates multiple expert networks with random dropout
transferattack/model_related/ll2s.py:262
Method__backward_hook
(self,m,i,o)
transferattack/advanced_objective/fmaa.py:62
Method__backward_hook
(self, m, i, o)
transferattack/advanced_objective/fft.py:115
Method__backward_hook
(self,m,i,o)
transferattack/advanced_objective/fia.py:59
Method__backward_hook
(self,m,i,o)
transferattack/advanced_objective/naa.py:57
Method__backward_hook
(self,m,i,o)
transferattack/advanced_objective/ata.py:50
Method__backward_hook
(self,m,i,o)
transferattack/advanced_objective/danaa.py:59
Method__backward_hook
(self, model, input, output)
transferattack/advanced_objective/rpa.py:56
Method__call__
(self, x, ts, **kwargs)
defense/diffpure/guided_diffusion/respace.py:131
Method__call__
(self, tensor)
defense/hgd/defense.py:50
Method__call__
(self, *input, **kwargs)
transferattack/attack.py:167
Method__call__
(self, module, input)
transferattack/model_related/sapr.py:57
Method__call__
(self, *args, **kwargs)
transferattack/generation/aim.py:57
Method__call__
(self, attn, is_cross: bool, place_in_unet: str)
transferattack/generation/diffattack.py:676
Method__call__
(self, x)
transferattack/input_transformation/ops.py:175
Method__call__
Random transform the input images
transferattack/input_transformation/ops.py:183
Method__call__
(self, x)
transferattack/input_transformation/ops.py:218
Method__call__
(self, img)
transferattack/input_transformation/l2t.py:36
Method__call__
(self, x)
transferattack/input_transformation/l2t.py:84
Method__call__
(self, x)
transferattack/input_transformation/l2t.py:92
Method__call__
Random transform the input images
transferattack/input_transformation/l2t.py:101
Method__call__
Scale the input for BlockShuffle
transferattack/input_transformation/l2t.py:154
Method__call__
(self, x)
transferattack/input_transformation/l2t.py:166
Method__call__
(self, x)
transferattack/input_transformation/l2t.py:174
Method__call__
(self, x)
transferattack/input_transformation/l2t.py:215
Method__call__
(self, x)
transferattack/input_transformation/l2t.py:334
Method__call__
(self, x)
transferattack/input_transformation/l2t.py:359
Method__call__
(self, x)
transferattack/input_transformation/l2t.py:368
Method__enter__
(self)
defense/diffpure/utils.py:54
Method__enter__
(self)
transferattack/model_related/faug.py:168
Method__enter__
Context manager entry: automatically apply wrapper
transferattack/model_related/ll2s.py:350
Method__exit__
(self, exc_type: Any, exc_value: Any, traceback: Any)
defense/diffpure/utils.py:57
Method__exit__
(self, exc_type, exc, tb)
transferattack/model_related/faug.py:175
Method__exit__
Context manager exit: automatically cleanup
transferattack/model_related/ll2s.py:355
Method__forward_hook
(module, inputs, outputs)
transferattack/model_related/iaa.py:107
Method__forward_hook
(self,m,i,o)
transferattack/advanced_objective/trap.py:78
Method__forward_hook
(self,m,i,o)
transferattack/advanced_objective/fmaa.py:58
Method__forward_hook
(self,m,i,o)
transferattack/advanced_objective/logit_margin.py:55
Method__forward_hook
(self,m,i,o)
transferattack/advanced_objective/fia.py:55
Method__forward_hook
(self,m,i,o)
transferattack/advanced_objective/naa.py:53
Method__forward_hook
(self,m,i,o)
transferattack/advanced_objective/ata.py:47
Method__forward_hook
(self,m,i,o)
transferattack/advanced_objective/danaa.py:55
Method__forward_hook
(self, model, input, output)
transferattack/advanced_objective/rpa.py:52
Method__getitem__
(self, index)
defense/at/dataset.py:61
Method__getitem__
(self, idx)
defense/diffpure/dataset.py:29
Method__getitem__
(self, idx)
defense/diffpure/guided_diffusion/image_datasets.py:111
Method__getitem__
(self, index)
defense/hgd/dataset.py:61
Method__getitem__
(self, index)
defense/nrp/utils.py:16
Method__getitem__
(self, idx)
transferattack/utils.py:127
Method__getitem__
(self, index)
transferattack/model_related/qaa_utils/utils.py:51
Method__getitem__
(self, item)
transferattack/advanced_objective/yaila/yaila_utils.py:30
Method__getitem__
(self, item)
transferattack/advanced_objective/yaila/yaila_utils.py:66
Method__init__
:param base_classifier: maps from [batch x channel x height x width] to [batch x num_classes] :param num_classes: :param sigm
defense/rs/core.py:14
Method__init__
:param means: the channel means :param sds: the channel standard deviations
defense/rs/datasets.py:158
Method__init__
(self, inplanes, planes, stride=1, downsample=None)
defense/rs/archs/cifar_resnet.py:22
Method__init__
(self, inplanes, planes, stride=1, downsample=None)
defense/rs/archs/cifar_resnet.py:54
Method__init__
(self, root, transform=None)
defense/at/dataset.py:49
Method__init__
(self)
defense/at/lib/utils.py:13
Method__init__
(self, args, config)
defense/diffpure/diffpure.py:36
Method__init__
(self, file_name: str = None, file_mode: str = "w", should_flush: bool = True)
defense/diffpure/utils.py:41
Method__init__
(self, input_dir=None, output_dir=None, targeted=False, eval=True)
defense/diffpure/dataset.py:12
Method__init__
(self, in_channels, with_conv)
defense/diffpure/ddpm/unet_ddpm.py:45
Method__init__
(self, in_channels, with_conv)
defense/diffpure/ddpm/unet_ddpm.py:64
Method__init__
(self, *, in_channels, out_channels=None, conv_shortcut=False, dropout, temb_channels=512)
defense/diffpure/ddpm/unet_ddpm.py:86
Method__init__
(self, in_channels)
defense/diffpure/ddpm/unet_ddpm.py:146
Method__init__
(self, args, config, device=None)
defense/diffpure/runners/diffpure_ddpm.py:58
Method__init__
(self, args, config, device=None)
defense/diffpure/runners/diffpure_ode.py:135
Method__init__
(self, args, config, device=None, model_dir='../models')
defense/diffpure/runners/diffpure_guided.py:18
Method__init__
(self, args, config, device=None)
defense/diffpure/runners/diffpure_sde.py:151
Method__init__
(self, args, config, device=None)
defense/diffpure/runners/diffpure_ldsde.py:152
Method__init__
( self, spacial_dim: int, embed_dim: int, num_heads_channels: int, out
defense/diffpure/guided_diffusion/unet.py:35
Method__init__
(self, channels, use_conv, dims=2, out_channels=None)
defense/diffpure/guided_diffusion/unet.py:131
Method__init__
( self, channels, emb_channels, dropout, out_channels=None, us
defense/diffpure/guided_diffusion/unet.py:168
← previousnext →901–1,000 of 2,264, ranked by callers