matteosal commented on issue #20293:
URL:
https://github.com/apache/incubator-mxnet/issues/20293#issuecomment-867631898
Unfortunately dynamic allocation is not an option for me, at least for now.
Anyway, I have verified that `static_alloc = false` indeed fixes the issue.
It also explains why it works on python, because no flag is passed to the
cached op from python and `static_alloc` is false by default. Hardcoding `
flags = {"static_alloc": "true"}`
[here](https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/_ctypes/cached_op.py#L50)
exposes the issue in the python script as well.
Thanks for submitting the PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]