[Python] `error in modulated_deformable_im2col_cuda: no kernel image is available for execution on the device` のエラーが表示される

pytorch で DCNv2 を使って推論を行っているアプリで、以下のエラーが表示されました。

error in modulated_deformable_im2col_cuda: no kernel image is available for execution on the device

Docker コンテナ内でアプリを動かしていたのですが、DCNv2 のビルドをやり直したら解消されました。
具体的には以下の make.sh を実行します。

参考 URL

Hugo で構築されています。
テーマ StackJimmy によって設計されています。