-
Notifications
You must be signed in to change notification settings - Fork 658
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
Core dump when trying to create empty IValue list for pytorch engine #1437
Comments
Change-Id: If6bebfef02efb1d42b65b1dd58b591df8274ff24
In libtorch,
I'm not sure how useful this emptyList API in real world. For now I will add a check to prevent the crash. |
@frankfliu I think empty lists are not uncommon. |
@jiyuanq We will take a look and see if we can add the feature with a nice API |
@frankfliu Anyway thanks for considering adding this feature! Let me know how it goes |
Description
Core dump when trying to create an empty IValue list with
IValue.listFrom(new IValue[0])
with djl 0.14.0However
IValue.listFrom(new double[0])
works for creating an empty double listExpected Behavior
It should successfully create an IValue instance which represents an empty list of IValues.
Error Message
Core dump
From JVM thread dump
How to Reproduce?
Steps to reproduce
Simply run the above code from java
What have you tried to solve it?
looks like it's an issue with the JNI layer, so not much i can do without changing it.
Environment Info
The text was updated successfully, but these errors were encountered: