Tensorflow之models中lstm测试

在Tensorflow中进行LSTM模型测试,通过下载数据存于simple-examplesdata,使用models-master utorials nnptb目录的代码。运行python ptb_word_lm.py时,若出现编码错误需移除decode('utf-8')。最终在指定路径下运行模型,得到实验结果。
摘要由CSDN通过智能技术生成

在Tensorflow中测试lstm
首先要下载数据数据存储在\simple-examples\data中
然后下载代码,代码存储在models-master\tutorials\rnn\ptb中
在python中运行ptb_word_lm.py,报编码错误时候删除decode(‘utf-8’)
然后运行ptb_word_lm.py
运行命令为
cd models/tutorials/rnn/ptb
python ptb_word_lm.py –data_path=/tmp/simple-examples/data/ –model=small
实验结果如下:

2017-06-02 17:13:20.158843: W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations.
2017-06-02 17:13:20.159843: W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE2 instructions, but these are available on your machine and could speed up CPU computations.
2017-06-02 17:13:20.159843: W c:\tf_jenkins\home\workspace\release-win\device\cpu\os
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值