Replies: 4 comments 6 replies
|
Did you profile? |
0 replies
|
I uploaded the code here -> https://github.com/K1T00/TorchSharpUnet |
0 replies
|
Moving the using var d = torch.NewDisposeScope(); into my train/validate functions did a great speedup. I guess my issue is solved now :) |
4 replies
|
I have another question. Let’s say I have two datasets, with pytorch I could do: trainSet1 = MyCustomDataset(…) How can I combine datasets with TorchSharp? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Currently I’m trying to port this U-Net example https://github.com/Mostafa-wael/U-Net-in-PyTorch to TorchSharp. My results look comparable to the PyTorch example but training in TorchSharp is waaay slower. At least 10x slower. Same model, same batch size, images etc.
Anyone tried something similar and had more success?
All reactions