def inception_resnet_v2_arg_scope(weight_decay=4e-05, batch_norm_decay=0.9997, batch_norm_epsilon=0.001):
 with slim.arg_scope([slim.conv2d, slim.fully_connected], weights_regularizer=slim.l2_regularizer(weight_decay), biases_regularizer=slim.l2_regularizer(weight_decay)):
  batch_norm_params = {'decay': batch_norm_decay, 'epsilon': batch_norm_epsilon}
  with slim.arg_scope([slim.conv2d], activation_fn=tf.nn.relu, normalizer_fn=slim.batch_norm, normalizer_params=batch_norm_params) as scope:
   return scope

def inception_resnet_v2_arg_scope ( weight_decay = 4e-05 , batch_norm_decay = 0.9997 , batch_norm_epsilon = 0.001 ) : with slim . arg_scope ( [ slim . conv2d , slim . fully_connected ] , weights_regularizer = slim . l2_regularizer ( weight_decay ) , biases_regularizer = slim . l2_regularizer ( weight_decay ) ) : batch_norm_params = { 'decay' : batch_norm_decay , 'epsilon' : batch_norm_epsilon } with slim . arg_scope ( [ slim . conv2d ] , activation_fn = tf . nn . relu , normalizer_fn = slim . batch_norm , normalizer_params = batch_norm_params ) as scope : return scope
yields the scope with the default parameters for inception_resnet_v2 .