SYMBOL INDEX (146 symbols across 19 files) FILE: attack.py function p_selection (line 12) | def p_selection(p_init, it, n_iters): function pseudo_gaussian_pert_rectangles (line 40) | def pseudo_gaussian_pert_rectangles(x, y): function meta_pseudo_gaussian_pert (line 57) | def meta_pseudo_gaussian_pert(s): function square_attack_l2 (line 76) | def square_attack_l2(model, x, y, corr_classified, eps, n_iters, p_init,... function square_attack_linf (line 199) | def square_attack_linf(model, x, y, corr_classified, eps, n_iters, p_ini... FILE: data.py function load_mnist (line 8) | def load_mnist(n_ex): function load_cifar10 (line 18) | def load_cifar10(n_ex): function load_imagenet (line 26) | def load_imagenet(n_ex, size=224): FILE: logit_pairing/models.py class LeNet (line 9) | class LeNet: method __init__ (line 10) | def __init__(self): class ResNet20_v2 (line 84) | class ResNet20_v2: method __init__ (line 85) | def __init__(self): function create_weights (line 327) | def create_weights(units_in, units_out, init='Xavier', seed=None): function create_conv2d_weights (line 350) | def create_conv2d_weights(kernel_size, filter_in, filter_out, init='Xavi... function create_biases (line 373) | def create_biases(size): function batch_norm (line 377) | def batch_norm(x, is_training, scale, bias, name, reuse): function nonlinearity (line 401) | def nonlinearity(x, non_linearity='relu'): function conv_layer (line 416) | def conv_layer(inputs, is_training, weights, stride, padding, bn, bn_sca... function pre_act_conv_layer (line 433) | def pre_act_conv_layer(inputs, is_training, weights, stride, padding, bn... function fc_layer (line 447) | def fc_layer(inputs, is_training, weights, bn, bn_scale, bn_bias, name, ... FILE: madry_cifar10/cifar10_input.py class CIFAR10Data (line 21) | class CIFAR10Data(object): method __init__ (line 40) | def __init__(self, path): method _load_datafile (line 68) | def _load_datafile(filename): class AugmentedCIFAR10Data (line 80) | class AugmentedCIFAR10Data(object): method __init__ (line 90) | def __init__(self, raw_cifar10data, sess, model): class DataSubset (line 114) | class DataSubset(object): method __init__ (line 115) | def __init__(self, xs, ys): method get_next_batch (line 122) | def get_next_batch(self, batch_size, multiple_passes=False, reshuffle_... class AugmentedDataSubset (line 146) | class AugmentedDataSubset(object): method __init__ (line 147) | def __init__(self, raw_datasubset, sess, x_input_placeholder, method get_next_batch (line 154) | def get_next_batch(self, batch_size, multiple_passes=False, reshuffle_... FILE: madry_cifar10/eval.py function evaluate_checkpoint (line 70) | def evaluate_checkpoint(filename): FILE: madry_cifar10/model.py class Model (line 9) | class Model(object): method __init__ (line 12) | def __init__(self, mode='eval'): method add_internal_summaries (line 21) | def add_internal_summaries(self): method _stride_arr (line 24) | def _stride_arr(self, stride): method _build_model (line 28) | def _build_model(self): method _batch_norm (line 103) | def _batch_norm(self, name, x): method _residual (line 115) | def _residual(self, x, in_filter, out_filter, stride, method _decay (line 148) | def _decay(self): method _conv (line 156) | def _conv(self, name, x, filter_size, in_filters, out_filters, strides): method _relu (line 166) | def _relu(self, x, leakiness=0.0): method _fully_connected (line 170) | def _fully_connected(self, x, out_dim): method _global_avg_pool (line 184) | def _global_avg_pool(self, x): FILE: madry_cifar10/model_robustml.py class Model (line 6) | class Model(robustml.model.Model): method __init__ (line 7) | def __init__(self, sess): method dataset (line 22) | def dataset(self): method threat_model (line 26) | def threat_model(self): method classify (line 29) | def classify(self, x): method input (line 36) | def input(self): method logits (line 40) | def logits(self): method predictions (line 44) | def predictions(self): FILE: madry_cifar10/pgd_attack.py class LinfPGDAttack (line 16) | class LinfPGDAttack: method __init__ (line 17) | def __init__(self, model, epsilon, num_steps, step_size, random_start,... method perturb (line 44) | def perturb(self, x_nat, y, sess): FILE: madry_cifar10/run_attack.py function run_attack (line 25) | def run_attack(checkpoint, x_adv, epsilon): FILE: madry_mnist/eval.py function evaluate_checkpoint (line 69) | def evaluate_checkpoint(filename): FILE: madry_mnist/model.py class Model (line 11) | class Model(object): method __init__ (line 12) | def __init__(self): method _weight_variable (line 59) | def _weight_variable(shape): method _bias_variable (line 64) | def _bias_variable(shape): method _conv2d (line 69) | def _conv2d(x, W): method _max_pool_2x2 (line 73) | def _max_pool_2x2( x): FILE: madry_mnist/run_attack.py function run_attack (line 22) | def run_attack(checkpoint, x_adv, epsilon): FILE: models.py class Model (line 15) | class Model: method __init__ (line 16) | def __init__(self, batch_size, gpu_memory): method predict (line 20) | def predict(self, x): method loss (line 23) | def loss(self, y, logits, targeted=False, loss_type='margin_loss'): class ModelTF (line 40) | class ModelTF(Model): method __init__ (line 48) | def __init__(self, model_name, batch_size, gpu_memory): method predict (line 64) | def predict(self, x): class ModelPT (line 81) | class ModelPT(Model): method __init__ (line 89) | def __init__(self, model_name, batch_size, gpu_memory): method predict (line 114) | def predict(self, x): FILE: post_avg/PADefense.py function checkEntropy (line 16) | def checkEntropy(scores): function checkConfidence (line 23) | def checkConfidence(scores, K=10): function integratedForward (line 30) | def integratedForward(model, sps, batchSize, nClasses, device='cpu', vot... function integratedForward_cls (line 64) | def integratedForward_cls(model, sps, batchSize, nClasses, device='cpu',... function findNeighbors_random (line 87) | def findNeighbors_random(sp, K, r=[2], direction='both'): function findNeighbors_plain_vgg (line 110) | def findNeighbors_plain_vgg(model, sp, K, r=[2], direction='both', devic... function findNeighbors_lastLy_vgg (line 174) | def findNeighbors_lastLy_vgg(model, sp, K, r=[2], direction='both', devi... function findNeighbors_approx_vgg (line 232) | def findNeighbors_approx_vgg(model, sp, K, r=[2], direction='both', devi... function findNeighbors_randPick_vgg (line 305) | def findNeighbors_randPick_vgg(model, sp, K, r=[2], direction='both', de... function findNeighbors_feats_lastLy_vgg (line 373) | def findNeighbors_feats_lastLy_vgg(model, sp, K, r=[2], direction='both'... function findNeighbors_feats_approx_vgg (line 439) | def findNeighbors_feats_approx_vgg(model, sp, K, r=[2], direction='both'... function formSquad_vgg (line 516) | def formSquad_vgg(method, model, sp, K, r=[2], direction='both', device=... function findNeighbors_approx_resnet (line 550) | def findNeighbors_approx_resnet(model, sp, K, r=[2], direction='both', d... function findNeighbors_approx_resnet_small (line 610) | def findNeighbors_approx_resnet_small(model, sp, K, r=[2], direction='bo... function formSquad_resnet (line 670) | def formSquad_resnet(method, model, sp, K, r=[2], direction='both', devi... FILE: post_avg/attacks.py class NullAttack (line 11) | class NullAttack(robustml.attack.Attack): method run (line 12) | def run(self, x, y, target): class FoolboxAttackWrapper (line 15) | class FoolboxAttackWrapper(robustml.attack.Attack): method __init__ (line 16) | def __init__(self, attack): method run (line 19) | def run(self, x, y, target): function fgsmAttack (line 33) | def fgsmAttack(victim_model): # victim_model should be model wrapped w... function pgdAttack (line 37) | def pgdAttack(victim_model): # victim_model should be model wrapped w... function dfAttack (line 41) | def dfAttack(victim_model): # victim_model should be model wrapped wit... function cwAttack (line 45) | def cwAttack(victim_model): # victim_model should be model wrapped with ... FILE: post_avg/postAveragedModels.py class PostAveragedResNet152 (line 13) | class PostAveragedResNet152(robustml.model.Model): method __init__ (line 14) | def __init__(self, K, R, eps, device='cuda'): method model (line 25) | def model(self): method dataset (line 29) | def dataset(self): method threat_model (line 33) | def threat_model(self): method classify (line 36) | def classify(self, x): method __call__ (line 47) | def __call__(self, x): method _preprocess (line 54) | def _preprocess(self, image): method to (line 60) | def to(self, device): method eval (line 64) | def eval(self): function pa_resnet152_config1 (line 68) | def pa_resnet152_config1(): class PostAveragedResNet110 (line 72) | class PostAveragedResNet110(robustml.model.Model): method __init__ (line 73) | def __init__(self, K, R, eps, device='cuda'): method model (line 94) | def model(self): method dataset (line 98) | def dataset(self): method threat_model (line 102) | def threat_model(self): method classify (line 105) | def classify(self, x): method __call__ (line 116) | def __call__(self, x): method _preprocess (line 123) | def _preprocess(self, image): method to (line 129) | def to(self, device): method eval (line 133) | def eval(self): function pa_resnet110_config1 (line 137) | def pa_resnet110_config1(): FILE: post_avg/resnetSmall.py function _weights_init (line 41) | def _weights_init(m): class LambdaLayer (line 47) | class LambdaLayer(nn.Module): method __init__ (line 48) | def __init__(self, lambd): method forward (line 52) | def forward(self, x): class BasicBlock (line 56) | class BasicBlock(nn.Module): method __init__ (line 59) | def __init__(self, in_planes, planes, stride=1, option='A'): method forward (line 80) | def forward(self, x): class ResNet (line 88) | class ResNet(nn.Module): method __init__ (line 89) | def __init__(self, block, num_blocks, num_classes=10): method _make_layer (line 102) | def _make_layer(self, block, planes, num_blocks, stride): method forward (line 111) | def forward(self, x): function resnet20 (line 122) | def resnet20(): function resnet32 (line 126) | def resnet32(): function resnet44 (line 130) | def resnet44(): function resnet56 (line 134) | def resnet56(): function resnet110 (line 138) | def resnet110(): function resnet1202 (line 142) | def resnet1202(): function test (line 146) | def test(net): FILE: post_avg/visualHelper.py function plotPredStats (line 10) | def plotPredStats(feats, lb, K=10, image=None, noiseImage=None, savePath... function plotPerturbationDistribution (line 113) | def plotPerturbationDistribution(perturbations, savePath=None): FILE: utils.py class Logger (line 5) | class Logger: method __init__ (line 6) | def __init__(self, path): method print (line 13) | def print(self, message): function dense_to_onehot (line 21) | def dense_to_onehot(y_test, n_cls): function random_classes_except_current (line 27) | def random_classes_except_current(y_test, n_cls): function softmax (line 36) | def softmax(x):