大家好,我詳情加一個問題:
當我在用@jit(nopython=True)裝飾一個函式的時候,這個函式還呼叫其他兩個函式,這時候在呼叫其他函式的地方會報錯:
numba.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Untyped global name 'my_conv2d': cannot determine Numba type of <class 'function'>
我猜原因是不是numba沒有合適的型別匹配這個函式的回傳值或者輸入值,但是確實都是常見的型別啊,這該怎么改呢?
uj5u.com熱心網友回復:
有沒有人救救孩子
uj5u.com熱心網友回復:
應該是因為你的型別沒法被numba識別轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/235756.html
上一篇:python set 為什么可以對純數字串列進行排列
下一篇:scrapy.cfg報錯
