Replies: 4 comments
-
@mxnet-label-bot add [question] |
Beta Was this translation helpful? Give feedback.
-
@windoman sorry for the late reply. The index comes from that ctc_loss op is set to return more than one output: https://github.com/apache/incubator-mxnet/blob/master/src/operator/nn/ctc_loss.cc#L103 |
Beta Was this translation helpful? Give feedback.
-
@szha Thank you very much for your reply. The |
Beta Was this translation helpful? Give feedback.
-
Description
I builded my network with
mx.sym.ctc_loss
for the final loss on speech recognition task, and withmx.viz.plot_network
to make sure the right struct of network. But I got an exception as I invokemx.viz.plot_network
, even if the symbol of network is as simple as possible.Environment info (Required)
operating system: ubuntu-16.04 LTS
python version: python 3.5
mxnet version: 1.4.0-cpu
Error Message:
Minimum reproducible example
(If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)
ctc_plot.py:
Steps to reproduce
(Paste the commands you ran that produced the error.)
What have you tried to solve it?
incubator-mxnet/python/mxnet/visualization.py
in which throw a exception, and got a wrongkey
forshape_dict
in following position invisualization.py
:And then, I found out that the input name of symbol of
MakeLoss(ctc_loss)
,"ctc_loss0_output0"
, has a bit difference fromkey = input_name + "_output"
which is"ctc_loss0_output"
. And shape variableshape_dict
is given by following code invisualization.py
:The definition of
list_outputs
which is located at line 734 ofmxnet/model/symbol.py
:I could not deep into as its' low-level implement, so is there anyone to help me out. What does raise that exception? Incorrect invoking of
ctc_loss
orplot_network
, or some inner mistakes in mxnet?Beta Was this translation helpful? Give feedback.
All reactions