#19351·mxnet

Softmax_label 神奇地出现了

作者: samskalicky创建于 2020年10月14日更新于 2023年7月27日
标签BugOperatorv1.x

□ 说明 Softmax/Softmax输出操作器有一个可选的 " 标签 " 输入,通过设置 " ignore label " 或 " use 长 " 来启用: https://GitHub.com/apache/incubator-mxnet/blob/master/src/operator/nn/softmax-inl.h#L616-L618 (中文(简体) ). https://GitHub.com/apache/incubator-mxnet/blob/v1.x/src/operator/softmax output-inl.h#L61-L63 (中文(简体) ).

许多常见的图像分类/CNN模型使用软max,但不要以有意义的方式使用"软max label"输入. 然而,对这个模式有实际投入。

ResNet 模型中的通知 :

{
"op":"null","没有".
""段落":"{},".
"名称":"softmax label",
"入道":[.
"后退 来源 id": -1
{\fn华文楷体\fs16\1cHE0E0E0}
{
"Op":"SoftmaxOutput","ft".
"段落":{
"分级":"1",
"无知 标签":"一一",.
"多输出":"假",".
"通":"无",".
"出 格":"虚","出".
"保定通志":"伪","sha".
"用"ign":"假".
{\fn华文楷体\fs16\1cHE0E0E0}
"名":"软相".
"输入": [[131, 0], [132, 0]],
"后退 来源 id": -1
{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢?

QQ 错误消息 符号/模块流:

回溯( 最近最后一次通话) :
文件"test.py", 第13行, 在<模块>
mod. set params( args, aux) (韩语)
文件"/home/ubuntu/incubator-mxnet/Python/mxnet/module/module.py",350行,以设置-参数表示
允许 extra=allow extra)
文件 "/home/ubuntu/孵化器-mxnet/Python/mxnet/module/module.py", 第309行, init params
缩写( desc, arr, arg  params)
文件"/home/ubuntu/孵化器-mxnet/Python/mxnet/module/module.py",行300,以 impl.
提高运行时 Error (“ %s” 未显示” % 名称)
运行时错误: 软max  标签未显示

克卢翁流:

回溯( 最近最后一次通话) :
文件"test.py", 第5行,在"模块"中
'resnet-18-00. params'),中国大陆名将.
文件 "/home/ubuntu/incubator-mxnet/Python/mxnet/gluon/block.py",第1409行,进口
dtype  source=' saved') 数据类型为“% 1”
文件"/home/ubuntu/孵化器-mxnet/Python/mxnet/gluon/parameter.py",行1020,载入.
忽略 extra,还原 prefix,文件名, cast dtype, dtype source)
File "/home/ubuntu/incubator-mxnet/Python/mxnet/gluon/parameter.py", 第1057行,载重-dit.
名称 [lprefix:], 错误 str,  brief print list(arg dict.keys ())
参数sertionError:参数someter'softmax label"在文件中缺失:resnet-18-00.params,包含参数:'stage1 unit1 sc  weight','stage2 unit1 bn2 gamma','bn data mooving var',.,'stage2 unit2 conv1 重量','stage1 unit2 bn1 gamma','stage2 unit2 bn2 moving var'. 请确保源和目标网络有相同的前缀. 关于命名的更多信息,请参见https://mxnet.io/api/Python/docs/tutorics/packages/gluon/blocks/naming.html.

□ 重现 注释“ allow missing=True”以复制错误信息。

将 mxnet 导入为 mx

profile='http://data.mxnet.io/models/imagenet/' (英语).
[mx.test utils.download (path+'resnet/18-layers/resnet-18-00.params'),, (中文(简体) ).
mx.test utils.download (path+'resnet/18-layers/resnet-18-symbol.json')] (中文(简体) ).

块=
. . . . . . .