Closed tadayosi closed 4 months ago
By the way, Apache MXNet project is already in attic mode. So is this model (and other MXNet models) something that is not recommended to use any more for DJL project as well? It appears that the MXNet engine is a bit outdated already and there's no support for AArch64.
@tadayosi
I created a PR to address this issue. However the caller must manually close the returned NDList, otherwise will cause memory leak.
@frankfliu Thanks, great!
Description
When I try to use the MXNet zoo model
ai.djl.mxnet/glove/0.0.2/glove
, it throws the following error and I cannot use it for NLP word embedding:Expected Behavior
It should not throw the error.
Error Message
See the description.
How to Reproduce?
I use this simple code:
Steps to reproduce
Run the above sample code.
What have you tried to solve it?
I searched the Issues and found this: https://github.com/deepjavalibrary/djl/issues/1064#issuecomment-871054042.
So according to @frankfliu, a Translator should not return
NDList
in general and otherwise the error is expected. However, it is thisai.djl.mxnet/glove/0.0.2/glove
model's translator that returnsNDList
.That leads me to an impression that it's not something that can be fixed at my end but rather a bug in the model / translator.
Thanks.