I have a some data in pytorch on the GPU, say,
x = torch.cuda.FloatTensor(500, 3).uniform_()
Is there any way to render this as a point cloud (ala https://matplotlib.org/gallery/mplot3d/scatter3d.html) without first transferring the data to the CPU?
I have looked at frameworks such as matplotlib, VisPy, mayavi, etc. But all of them seem to want data via the CPU and cannot handle a GPU pointer, say.
Does anyone know of a good method?
Preferably, the plotting should be non-blocking such that I can have a live view of x
during training. Any ideas?