-
Notifications
You must be signed in to change notification settings - Fork 173
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
System.AccessViolationException Error when using TorchSharp #1292
Comments
I could hardly provide any more details because it's just a simple pytorch trained model, and this problem also occurs in many other executions related to loading model, like below |
Yes, please start by upgrading to the most recent version of TorchSharp -- it's very hard (let's call it impossible), given limited resources, for us to troubleshoot a version as old as |
This problem still exists even when I change to version 0.102.4 when loading models....... |
Okay, that's good to know, that makes it easier to troubleshoot. Can you please show the Python code used to generate the "exported.method.dat" file? |
@NiklasGustafsson The And it could work for me. The exception is just because I didn't pass the required parameter. It's not the |
A System.AccessViolationException Error occurs when executing a simple code
model = jit.load(modelPath, DeviceType.CUDA);
how can I fit that
the torchsharp version is TorchSharp-cuda-windows 0.100.7
the details of error information:
System.AccessViolationException
HResult=0x80004003
Message=尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
Source=
StackTrace:
The text was updated successfully, but these errors were encountered: