Skip to content

如何使用GPU加速 #2

@monstergazan

Description

@monstergazan

将模型和dataloader的数据放在GPU上,但是一直提示别的张量没有放在GPU,修改了好久都查不出问题。发现问题就在update方法中out = self(x, char_x, lens)部分,一直没能解决

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions