graykode / graykode/nlp-tutorial

Transformer/Transformer(Greedy_decoder)-Torch.py on gpu

未关闭
#35 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Jupyter Notebook
星标
14.9k
派生
3.9k
PR 合并指标
30 天内没有已合并 PR

描述

Hello, I want to put the Transformer (Greedy_decoder)-Torch.py code on the gpu, using model=model.to(device), input_data also to (device), but the error still appears "Expected object of backend CUDA but backend CPU for argument #2 'mat2”

贡献指南

打开贡献指南

调研方向

从 Transformer/Transformer(Greedy_decoder)-Torch.py 开始,重现报告的 CUDA-versus-CPU mat2 错误。跟踪 model、input_data 以及涉及失败操作的张量所在的设备。当示例能够在 GPU 上运行且不存在后端不匹配时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
machine-learning
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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