Skip to content

Error message when running in CPU environment. #1

@Super-LzzZ

Description

@Super-LzzZ

Hi, this is an interesting project!
However, there are some small issues in the code. While the CausCell class allows passing the parameter device=‘cpu’ during initialization, subsequent sections of the CausCell class and the Trainer class code all use .cuda(), which causes errors when running in a non-CUDA environment.
Replacing this with .to(self.device) resolves the issue.
🙂

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