【问题标题】:ValidationError: Graph must be in single static assignment (SSA) form, however 'layer1_0_relu0_fwd' has been used as output names multiple timesValidationError:图形必须采用单一静态分配 (SSA) 形式,但是“layer1_0_relu0_fwd”已多次用作输出名称
【发布时间】:2021-04-23 05:48:27
【问题描述】:

在将 MXNet i3d_resnet50_v1_custom 模型转换为 onxx 时出现如下错误:

ValidationError: Graph must be in single static assignment (SSA) form, however 'layer1_0_relu0_fwd' has been used as output names multiple times.

我使用的onxx版本:1.2.1

【问题讨论】:

    标签: mxnet gluon onnx


    【解决方案1】:

    github discussion 的帮助下修复了错误。

    1. 安装 onnx 和支持库

      !apt-get install protobuf-compiler libprotoc-dev

      !pip install onnx==1.7

    2. 克隆 mxnet v1.x

      !rm -r 孵化器-mxnet

      !git clone -b v1.x --single-branch https://github.com/apache/incubator-mxnet.git

    3. 造轮子

      %cd /content/incubator-mxnet/python/mxnet/onnx/

      !python setup.py install --force

    4. 终于导入使用

      导入 mx2onnx

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多