LoginSignup
0
0

More than 3 years have passed since last update.

QumicoでReduceMean version 11 is not implemented.が出たときの対応方法

Posted at

組込向け向けのフレームワークQumicoでONNXを変換しようとしたとき、このようなエラーが出たときの対応方法です。

エラーメッセージ

  File "c:\home\myproj\qumico\qumico\common\exception.py", line 13, in __call__
    raise self._func(self.get_message(*args, **kwargs))
NotImplementedError: ReduceMean version 11 is not implemented.

QumicoがサポートしているOPの一覧はこちらにあります。
https://github.com/PasonaTech-Inc/Qumico/tree/master/qumico/handlers/backend

ReduceMean自体は対応しているのでversion 11の方が問題です。現在のQumicoが対応しているONNXはrequirements.txtに記載してあるONNX==1.15.0までです。調べてみると僕の環境はONNX==1.16.0だったので、ONNXのライブラリのバージョンを合わせたらエラーが消えました。

pip uninstall onnx
pip install onnx==1.5.0

QumicoのサンプルにはGoogle Colabファイルもあるので、自分の環境を変更したくない場合はColabベースで使うのも良いと思います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0