Skip to content

Commit

Permalink
Merge pull request caicloud#26 from jke-zq/master
Browse files Browse the repository at this point in the history
remvoe unused semicolon
  • Loading branch information
perhapszzy authored May 11, 2017
2 parents 4420af4 + 2280766 commit 345cf7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def model_fn(sync, num_replicas):
tf.add_to_collection(tf.GraphKeys.LOSSES, _loss)

# Create optimizer to compute gradient
optimizer = tf.train.AdagradOptimizer(0.01);
optimizer = tf.train.AdagradOptimizer(0.01)
if sync:
num_workers = num_replicas
optimizer = tf.train.SyncReplicasOptimizer(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __init__(self,
更新机制,需要使用 `tf.train.SyncReplicasOptimizer` 来对平常 `Optimizer` 进行
封装,例如:
```
optimizer = tf.train.AdagradOptimizer(0.01);
optimizer = tf.train.AdagradOptimizer(0.01)
if sync:
num_workers = num_replicas
optimizer = tf.train.SyncReplicasOptimizer(
Expand Down

0 comments on commit 345cf7d

Please sign in to comment.