Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ashafahi/free_adv_train
/ functions
Functions
33 in github.com/ashafahi/free_adv_train
⨍
Functions
33
◇
Types & classes
10
↓ 7 callers
Method
_stride_arr
Map a stride scalar to the stride array for tf.nn.conv2d.
free_model.py:31
↓ 4 callers
Method
_batch_norm
Batch normalization.
free_model.py:113
↓ 4 callers
Method
_relu
Relu, with optional leaky support.
free_model.py:169
↓ 3 callers
Method
_conv
Convolution.
free_model.py:159
↓ 3 callers
Method
get_next_batch
(self, batch_size, multiple_passes=False, reshuffle_after_pass=True)
cifar10_input.py:133
↓ 2 callers
Method
_load_datafile
(filename)
cifar10_input.py:78
↓ 2 callers
Method
_load_datafile
(filename)
cifar100_input.py:72
↓ 1 callers
Method
_build_model
(self)
free_model.py:35
↓ 1 callers
Method
_decay
L2 weight decay loss.
free_model.py:151
↓ 1 callers
Method
_fully_connected
FullyConnected layer for final output.
free_model.py:173
↓ 1 callers
Method
_global_avg_pool
(self, x)
free_model.py:187
↓ 1 callers
Function
get_args
()
config.py:7
↓ 1 callers
Method
get_next_batch
(self, batch_size, multiple_passes=False, reshuffle_after_pass=True)
cifar100_input.py:128
↓ 1 callers
Function
get_path_dir
(data_dir, dataset, **_)
free_train.py:21
↓ 1 callers
Function
get_path_dir
(data_dir, dataset, **_)
multi_restart_pgd_attack.py:68
↓ 1 callers
Method
perturb
Given a set of examples (x_nat, y), returns a set of adversarial examples within epsilon of x_nat in l_infinity norm.
multi_restart_pgd_attack.py:51
↓ 1 callers
Method
rec_search
(original_path)
cifar10_input.py:68
↓ 1 callers
Function
train
(tf_seed, np_seed, train_steps, out_steps, summary_steps, checkpoint_steps, step_size_schedule, wei
free_train.py:28
Method
__init__
ResNet constructor. Args: mode: One of 'train' and 'eval'.
free_model.py:14
Method
__init__
(self, path)
cifar10_input.py:39
Method
__init__
(self, raw_cifar10data, sess, model)
cifar10_input.py:101
Method
__init__
(self, xs, ys)
cifar10_input.py:126
Method
__init__
(self, raw_datasubset, sess, x_input_placeholder, augmented)
cifar10_input.py:158
Method
__init__
Attack parameter initialization. The attack performs k steps of size a, while always staying within epsilon from the initial p
multi_restart_pgd_attack.py:25
Method
__init__
(self, path)
cifar100_input.py:40
Method
__init__
(self, raw_cifar100data, sess, model)
cifar100_input.py:96
Method
__init__
(self, xs, ys)
cifar100_input.py:121
Method
__init__
(self, raw_datasubset, sess, x_input_placeholder, augmented)
cifar100_input.py:153
Method
_residual
Residual unit with 2 sub layers.
free_model.py:119
Method
add_internal_summaries
(self)
free_model.py:28
Method
get_next_batch
(self, batch_size, multiple_passes=False, reshuffle_after_pass=True)
cifar10_input.py:165
Method
get_next_batch
(self, batch_size, multiple_passes=False, reshuffle_after_pass=True)
cifar100_input.py:160
Function
pair
(arg)
config.py:4