NYU-DLSP20 icon indicating copy to clipboard operation
NYU-DLSP20 copied to clipboard

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

Open norihiro-ito opened this issue 3 years ago • 2 comments

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()))

norihiro-ito avatar Apr 30 '21 11:04 norihiro-ito

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

Atcold avatar May 04 '21 21:05 Atcold

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

ritchieng avatar May 05 '21 10:05 ritchieng