Hi all,
I'm using dynet with autobatching, and would like to perform argmax for greedy decoding in encoder-decoder rnn.
However dynet doesn't have built-in argmax, so I need to use np.argmax along with Expression.npvalue() instead, which performs forward propagation such as
=============
y_t = np.argmax(dy.softmax(...).npvalue())
=============
In my understanding, autobatching works well when we wait forward propagation until all graphs in a batch have constructed, so I want to avoid using np.argmax.
Is there any way to do argmax without performing forward propagation, or is my understanding wrong?
Thank you,
Fujino