zhiheng-huang commented on a change in pull request #7727: change contrib CTC to zero-indexed, in log space. sequence mask for grad URL: https://github.com/apache/incubator-mxnet/pull/7727#discussion_r137368739
########## File path: example/ctc/lstm_ocr.py ########## @@ -59,7 +59,7 @@ def gen_rand(): def get_label(buf): ret = np.zeros(4) for i in range(len(buf)): - ret[i] = 1 + int(buf[i]) + ret[i] = int(buf[i]) Review comment: My understanding is that zero is reserved for CTC blank label, then we shall not use zero as label (which is ensured by the old code). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services