Skip to content

after typing model.cuda() & data.cuda() in example.py, still wrong #12

@tomFoxxxx

Description

@tomFoxxxx

'''
exponent = torch.exp(-.5 * torch.sum((x - mu) * (x - mu) / var, 2, keepdim=True))

RuntimeError: expected device cpu and dtype Float but got device cuda:0 and dtype Float
'''
How could this program working rightly with 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