Skip to content

found at least two devices, cuda:0 and cpu #5

@senguet

Description

@senguet

Thank you very much for your contribution, I have a question. When I run the training code, the following error occurs:

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper__index_select)

But I can't find the problem. Looking forward to your reply, thank you!

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