Wang Meng

Results comments of Wang Meng

Hi burness, When the input is sparse, the fm layer can only run in CPU. When the input is dense vector, the fm layer can run on both GPU and...

Yes, you can change the ``` sparse_input = paddle.layer.data( name="sparse_input", type=paddle.data_type.sparse_binary_vector(sparse_feature_dim)) ``` to ``` sparse_input = paddle.layer.data( name="sparse_input", type=paddle.data_type.dense_vector(sparse_feature_dim)) ``` and adjust the yield value in reader.py, then this demo...

You can change the reader.py as following to change the yield value to be dense: ```python import numpy as np class Dataset: def _reader_creator(self, path, is_infer): def reader(): with open(path,...

根据报错信息`blas_thread_server`, 这个应该是openblas的问题,参考这个issue:https://github.com/PaddlePaddle/models/issues/561#issuecomment-354972979 .建议删掉系统原来安装的openblas,然后重新安装最新的paddle,这样就用paddle自己的blas了。 还有人说替换python版本就没问题了:https://github.com/PaddlePaddle/models/issues/561#issuecomment-355476078 。所以也可以先试试替换下python的版本,然后重新安装paddle。

cos_sim应该不支持输入是个sequence,所以只能实现第一个lstm的最后一步和第二个lstm的最后一步比较,应该不能算第一个lstm的最后一步和第二个lstm的所有步比较。

网络配置没有问题,可能是和这个[issue](https://github.com/PaddlePaddle/models/issues/561)一样的问题,建议删掉系统之前安装的openblas,然后重新安装最新的paddle

还需要定义trainer,paddle中的参数是在trainer中初始化的。可以参考[paddle book](http://www.paddlepaddle.org/docs/develop/book/02.recognize_digits/index.html)中的例子。