allenai / allenai/document-qa

I successfully wrote convert_to_cpu for elmo but inference takes time on cpu

未关闭
#55 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
435
派生
118
PR 合并指标
30 天内没有已合并 PR

描述

With the help of issues and comments reported here on convert_to_cpu.py for ELMO I wrote the script.
I am able to run the ELMO model on CPU, but the converted model is taking time for inference. Also results for GPU and CPU model is slightly different in terms of score for same trained model.

Output of convert to cpu model
```
Rebuilding
These should be close:
[False]
[array([[0.8571025]], dtype=float32)]
[array([[0.84660774]], dtype=float32)]
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。