Is there something like `inspect_types()` for a numba ' @jitclass`?

戏子无情 提交于 2019-12-11 06:11:24

问题


My numba @jitclass fails with a TypingError and an unhelpful error message, once I try to instantiate it: Can't infer type of variable '$0.1': list(undefined). Which variable does that $0.1 correspond to (ok, probably the first one encountered, but in which function?). With normal functions, inspect_types() would be very helpful here. However, It doesn't seem to exist, neither on the jitclass, nor on it's methods. Is there something like that for jitclasses? I'm on numba 0.28.1 (currently the latest stable), but in general, I'm just interested about the most recent version of numba.

来源:https://stackoverflow.com/questions/39638721/is-there-something-like-inspect-types-for-a-numba-jitclass

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!