mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-10-04 12:10:40 +08:00
update
This commit is contained in:
1 parent
35cdb4ae52
commit
3969b73cec
1 file changed
+1
-1
@@ -142,7 +142,7 @@ def loss(labels, logits):
|
||||
# the optimizer is not used since this code only supports inference
|
||||
# however, to compile the model, we still define it
|
||||
optimizer = tf.contrib.estimator.clip_gradients_by_norm(
|
||||
tf.train.AdagradOptimizer(learning_rate=1e-2), 0.25)
|
||||
tf.train.AdagradOptimizer(learning_rate=1e-4), 0.25)
|
||||
|
||||
# compile the model with the optimizer and loss
|
||||
model.compile(optimizer=optimizer, loss=loss)
|
||||
|
||||
Reference in new issue
Block a user