From 9e251d3c1408195c05f5b4aa3f80c68d173be99b Mon Sep 17 00:00:00 2001 From: Mingkun Huang Date: Sat, 28 Jul 2018 03:46:35 +0800 Subject: [PATCH] Fix mxnet ctc_loss bug (#11834) * fix ctc_loss GPU bug * add blank_label parameter for CTCLoss * Revert "add blank_label parameter for CTCLoss" This reverts commit aab11f7575580f88f5f27be14466d0deb4b4c456. --- src/operator/contrib/ctc_include/detail/gpu_ctc.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/operator/contrib/ctc_include/detail/gpu_ctc.h b/src/operator/contrib/ctc_include/detail/gpu_ctc.h index 8015b39c4374..2c521b5abb5d 100644 --- a/src/operator/contrib/ctc_include/detail/gpu_ctc.h +++ b/src/operator/contrib/ctc_include/detail/gpu_ctc.h @@ -411,12 +411,7 @@ GpuCTC::compute_log_probs(const ProbT* const activations) { denoms_, out_dim_, num_elements); // compute denominators for softmax - denoms_handle = reduce_with_axis( - F( - log_probs_handle - - broadcast<0>(reduce_with_axis(log_probs_handle, 1), - log_probs_handle.shape_)), - 1); + denoms_handle = reduce_with_axis(F(log_probs_handle), 1); // Kernel launch to calculate probabilities compute_log_probs_kernel<<>>