Skip to content

Cannot specify GPU to train the model, only GPU 0 can be used #2960

Open
@lfbcccc

Description

@lfbcccc

Describe the bug
Cannot specify GPU to train the model, only GPU 0 can be used

Reproduction

  1. What command or script did you run?

train.py

  1. Did you make any modifications on the code or config? Did you understand what you have modified?

Only when I change the Gpu_id to 1 will an error occur
微信截图_20230426223716

RuntimeError: Expected tensor for 'out' to have the same device as tensor for argument #3 'batch2'; but device 1 does not equal 0 (while checking arguments for baddbmm)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions