提交 6dfba39c 编写于 作者: D dangqingqing

resume file in sentiment demo.

上级 fd46fe38
......@@ -103,7 +103,7 @@ def stacked_lstm_net(input_dim,
if __name__ == '__main__':
# init
paddle.init(use_gpu=False, log_clipping=True)
paddle.init(use_gpu=False)
#data
print 'load dictionary...'
......@@ -131,7 +131,6 @@ if __name__ == '__main__':
# create optimizer
adam_optimizer = paddle.optimizer.Adam(
learning_rate=2e-3,
gradient_clipping_threshold=0.003,
regularization=paddle.optimizer.L2Regularization(rate=8e-4),
model_average=paddle.optimizer.ModelAverage(average_window=0.5))
......
......@@ -18,6 +18,7 @@ setup(name='paddle',
"numpy",
"protobuf==${PROTOBUF_VERSION}",
"matplotlib",
"opencv-python",
],
packages=packages,
package_dir={
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册