Skip to content

Commit

Permalink
Move tensor to the CPU for t-SNE fitting (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
herrmann committed Jul 15, 2021
1 parent 42c0c5f commit b28aa29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 11-VAE.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
"epochs = (0, 5, 10)\n",
"for epoch in epochs:\n",
" Y.append(codes['μ'][epoch][:N])\n",
" E.append(TSNE(n_components=2).fit_transform(Y[-1]))\n",
" E.append(TSNE(n_components=2).fit_transform(Y[-1].detach().cpu()))\n",
" X.append(codes['x'][epoch][:N])"
]
},
Expand Down

0 comments on commit b28aa29

Please sign in to comment.