Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11-VAE.ipnb] TSNE fit_transform() happens a error with cuda #776

Open
norihiro-ito opened this issue Apr 30, 2021 · 2 comments
Open

[11-VAE.ipnb] TSNE fit_transform() happens a error with cuda #776

norihiro-ito opened this issue Apr 30, 2021 · 2 comments

Comments

@norihiro-ito
Copy link

norihiro-ito commented Apr 30, 2021

Following line happens a coversion error in the 16th cell. with CUDA environment.
It causes to set cuda type tensor to TSNE,fit_transform().

E.append(TSNE(n_components=2).fit_transform(X[-1]))

I passed to add ,cpu() calling.

E.append(TSNE(n_components=2).fit_transform(X[-1].cpu()))

@Atcold
Copy link
Owner

Atcold commented May 4, 2021

It looks good. @norihiro-ito, do you think you can send a pull request with such improvement?
Otherwise @ritchieng can do it for you.

@ritchieng
Copy link
Collaborator

Let me double check. I'll push the fix and close the issue once I'm done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants