【问题标题】:mxnet infer_shape_entry TypeError: an integer is requiredmxnet infer_shape_entry TypeError:需要一个整数
【发布时间】:2018-11-27 12:35:13
【问题描述】:

我在测试自定义运算符时遇到了 infer_shape 错误。

错误信息:

Error in <my_operator_name>.infer_shape: Traceback (most recent call last):
  File "~/anaconda2/envs/mx110-py27/lib/python2.7/site-packages/mxnet/operator.py", line 658, in infer_shape_entry
    array('I', rshape[i])),
TypeError: an integer is required

以前有人遇到过同样的问题吗?谢谢!

【问题讨论】:

    标签: python mxnet


    【解决方案1】:

    我发现这是因为 mxnet.operator.CustomProp 的 __init__ 函数只接受字符串类型的参数。

    【讨论】:

      猜你喜欢
      • 2015-07-14
      • 2019-03-22
      • 2018-05-04
      • 2015-08-10
      • 2013-02-16
      • 1970-01-01
      • 2016-05-23
      • 2016-05-29
      • 1970-01-01
      相关资源
      最近更新 更多