Skip to content

it will Raise RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! #37

@xiaozhen28

Description

@xiaozhen28

it will Raise RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! if gmm.fix(x) be used in the second time. I dont konw hao to fix it. The code as gmm = GaussianMixture(n_components, x.size(1), covariance_type="diag").cuda() gmm.fit(x) gmm.fit(x) #this will raise error

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