Skip to content

Use set_default_tensor_type for Cuda #74

@jumelet

Description

@jumelet
if torch.cuda.is_available():
        torch.set_default_tensor_type('torch.cuda.FloatTensor')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions