未验证 提交 a0510ad9 编写于 作者: C Chen Weihang 提交者: GitHub

Polish optimizer name in 04.word2vec (#841)

* change opt name in word2vec

* update index.cn.html
上级 e776e900
......@@ -351,8 +351,8 @@ def train(if_use_cuda, params_dirname, is_sparse=True):
avg_cost = train_program(predict_word)
test_program = main_program.clone(for_test=True)
sgd_optimizer = optimizer_func()
sgd_optimizer.minimize(avg_cost)
optimizer = optimizer_func()
optimizer.minimize(avg_cost)
exe = fluid.Executor(place)
......
......@@ -316,8 +316,8 @@ def train(if_use_cuda, params_dirname, is_sparse=True):
avg_cost = train_program(predict_word)
test_program = main_program.clone(for_test=True)
sgd_optimizer = optimizer_func()
sgd_optimizer.minimize(avg_cost)
optimizer = optimizer_func()
optimizer.minimize(avg_cost)
exe = fluid.Executor(place)
......
......@@ -393,8 +393,8 @@ def train(if_use_cuda, params_dirname, is_sparse=True):
avg_cost = train_program(predict_word)
test_program = main_program.clone(for_test=True)
sgd_optimizer = optimizer_func()
sgd_optimizer.minimize(avg_cost)
optimizer = optimizer_func()
optimizer.minimize(avg_cost)
exe = fluid.Executor(place)
......
......@@ -358,8 +358,8 @@ def train(if_use_cuda, params_dirname, is_sparse=True):
avg_cost = train_program(predict_word)
test_program = main_program.clone(for_test=True)
sgd_optimizer = optimizer_func()
sgd_optimizer.minimize(avg_cost)
optimizer = optimizer_func()
optimizer.minimize(avg_cost)
exe = fluid.Executor(place)
......
......@@ -122,8 +122,8 @@ def train(if_use_cuda, params_dirname, is_sparse=True):
avg_cost = train_program(predict_word)
test_program = main_program.clone(for_test=True)
sgd_optimizer = optimizer_func()
sgd_optimizer.minimize(avg_cost)
optimizer = optimizer_func()
optimizer.minimize(avg_cost)
exe = fluid.Executor(place)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册