Replies: 1 comment
-
Argh, I think I found the guilty! I have an animated progress bar in C# during the processing... I didn't know that it can slow the app so much !!! |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I ported an image segmentation code from python to C# but the performance are not equal, python is faster by a factor of 2 (about 10 sec instead of 20 sec).
I can't figure out why??? May be I am wrong, but to me, both python and C# call the same C++ function under the hood?
I am wondering is there is some kind "configuration settings" in torchsharp to tweak the inference speed?
Both codes are using the same torchscript model.
Both are using CPU.
On C# I installed Windows x64 cpu binaries.
I am only measuring the inference (Call() in C#)
Python
C#
Do you know what could explain a such huge speed difference?
Thanks for helping.
Beta Was this translation helpful? Give feedback.
All reactions