Skip to content

Invaild device specified in common.py #3

@fanqiNO1

Description

@fanqiNO1

Competition_3v3snakes/rl_trainer/common.py Line 11
device = torch.device("cuda:1") if torch.cuda.is_available() else torch.device("cpu")

"cuda:1" should be replcaed by "cuda:0", or there is an error "CUDA error: invalid device ordinal"

Because "cuda:1" chooses the second gpu.

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