-
Notifications
You must be signed in to change notification settings - Fork 21
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
RuntimeError: Only last dimension is supported for softmax #50
Comments
Can you use |
Changed to:
and I get:
|
Do you have latest version? |
I added it around Nov 26. |
Yes, cloned yesterday |
Ok let me see what I can do. Can you give me full example of your loss function? |
Code for training one epoch:
Code of UNet class:
train_loader yields two tensors (X, y) where
|
Got it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for all your effort, OpenCL is really the only option for old AMD gpus.
I have successfully managed to build your code on windows by following the instructions. There were some minor issues I would like to note in case you want to update README accordingly:
I had to add this piece of code to my script:
os.add_dll_directory("C:\deps\lib")
This was a sidenote, the real issue I have is that I get an error when trying to train a simple UNET using CrossEntropyLoss:
where criterion is: nn.CrossEntropyLoss()
Is this normal?
Details:
Number of classes: 5
My batches have this shape: (256, 1, 512)
Output has shape: (256, 5, 512)
Labels have shape: (256, 512)
Specs:
OS: Windows 10
PyTorch version: 1.13
Python version: 3.10
GPU: RX 590
The text was updated successfully, but these errors were encountered: