scDeepCluster_pytorch
scDeepCluster_pytorch copied to clipboard
RuntimeError during clustering step
Hi,
Thanks for the awesome tool. I ran the training model step successfully. But I encountered an issue during the "Clustering stage".
RuntimeError: "normal_kernel_cpu" not implemented for 'Long'
Please check the screenshot.
Please let me know how can I fix it the error.
Could you let me know the version of PyTorch that you are using?
I checked the message you posted. It seems the error comes from the line 69 in scDeepCluster.py that uses "torch.randn_like" function. "torch.randn_like" function will sample random values from the Gaussian distribution, so it should be float values. But in your case, your input data x seems like to be a Long data type. Input x should be float32 or float64 values. Could you check your input data?