Home
last modified time | relevance | path

Searched refs:weight_decay (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/contrib/opt/python/training/
Dweight_decay_optimizers.py81 def __init__(self, weight_decay, **kwargs): argument
91 self._weight_decay = weight_decay
166 weight_decay = self._weight_decay
167 if callable(weight_decay):
168 weight_decay = weight_decay()
170 weight_decay, name="weight_decay")
270 def __init__(self, weight_decay, *args, **kwargs): argument
274 weight_decay, *args, **kwargs)
304 def __init__(self, weight_decay, learning_rate, momentum, argument
332 weight_decay, learning_rate=learning_rate, momentum=momentum,
[all …]
Dlars_optimizer.py51 weight_decay=0.0001, argument
85 if weight_decay < 0.0:
86 raise ValueError("weight_decay should be positive: %s" % weight_decay)
91 self._weight_decay = weight_decay
Dlars_optimizer_test.py50 weight_decay=wd_np,
97 weight_decay=wd_np,
/external/tensorflow/tensorflow/contrib/eager/python/examples/densenet/
Ddensenet.py41 def __init__(self, num_filters, data_format, bottleneck, weight_decay=1e-4, argument
55 kernel_regularizer=l2(weight_decay))
66 kernel_regularizer=l2(weight_decay))
93 weight_decay=1e-4, dropout_rate=0): argument
104 kernel_regularizer=l2(weight_decay))
128 weight_decay=1e-4, dropout_rate=0): argument
138 weight_decay,
175 bottleneck=True, compression=0.5, weight_decay=1e-4, argument
186 self.weight_decay = weight_decay
232 self.weight_decay))
[all …]
Ddensenet_test.py45 weight_decay=1e-4, dropout_rate=0,
68 weight_decay=1e-4, dropout_rate=0,
91 weight_decay=1e-4, dropout_rate=0,
108 weight_decay = 1e-4
115 kernel_regularizer=tf.keras.regularizers.l2(weight_decay))
122 true_l2 = compute_true_l2(conv.variables, weight_decay)
128 loss_with_true_l2 = loss + compute_true_l2(conv.variables, weight_decay)
228 weight_decay=1e-4, dropout_rate=0,
277 weight_decay=1e-4, dropout_rate=0,
Ddensenet_graph_test.py62 weight_decay=1e-4, dropout_rate=0,
99 weight_decay=1e-4, dropout_rate=0,
129 weight_decay=1e-4, dropout_rate=0,
/external/tensorflow/tensorflow/contrib/slim/python/slim/nets/
Doverfeat.py48 def overfeat_arg_scope(weight_decay=0.0005): argument
52 weights_regularizer=regularizers.l2_regularizer(weight_decay),
Dalexnet.py52 def alexnet_v2_arg_scope(weight_decay=0.0005): argument
57 weights_regularizer=regularizers.l2_regularizer(weight_decay)):
Dresnet_utils.py225 def resnet_arg_scope(weight_decay=0.0001, argument
257 weights_regularizer=regularizers.l2_regularizer(weight_decay),
Dvgg.py56 def vgg_arg_scope(weight_decay=0.0005): argument
68 weights_regularizer=regularizers.l2_regularizer(weight_decay),
Dinception_v1.py368 def inception_v1_arg_scope(weight_decay=0.00004, argument
408 weights_regularizer=regularizers.l2_regularizer(weight_decay)):
Dinception_v2.py605 def inception_v2_arg_scope(weight_decay=0.00004, argument
636 weights_regularizer=regularizers.l2_regularizer(weight_decay)):
Dinception_v3.py681 def inception_v3_arg_scope(weight_decay=0.00004, argument
722 weights_regularizer=regularizers.l2_regularizer(weight_decay)):
/external/tensorflow/tensorflow/contrib/model_pruning/examples/cifar10/
Dcifar10_pruning.py126 weight_decay = tf.multiply(tf.nn.l2_loss(var), wd, name='weight_loss')
127 tf.add_to_collection('losses', weight_decay)
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dlayers_test.py470 weight_decay = 0.01
473 regularizer = regularizers.l2_regularizer(weight_decay)
480 self.assertAlmostEqual(sess.run(wd), weight_decay * l2_loss.eval())
512 weight_decay = regularizers.l2_regularizer(0.01)
514 [layers_lib.convolution2d], weights_regularizer=weight_decay):
1727 weight_decay = regularizers.l2_regularizer(0.01)
1728 _layers.fully_connected(inputs, 32, weights_regularizer=weight_decay)
1759 weight_decay = regularizers.l2_regularizer(0.01)
1761 inputs, 32, weights_regularizer=weight_decay, scope='FC')
1766 inputs, 32, weights_regularizer=weight_decay, scope='FC', reuse=True)
[all …]
/external/tensorflow/tensorflow/contrib/eager/python/examples/revnet/
Drevnet.py190 g + self.config.weight_decay * v if v.name.endswith("kernel:0") else g