Skip to content

Error regarding multiple devices  #1

@sgtkellox

Description

@sgtkellox

Im having this Error:

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

It can be fixed by adding:

.optOption("mapLocation", "true") 
.optDevice(Device.gpu())

to the criteria.
regards,
Felix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions