Skip to content

Add device check for training #3

@Joe-Vincent

Description

@Joe-Vincent

if torch.cuda.is_available(): device = torch.device("cuda")
else: device = torch.device("cpu")

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