function dX = internal_ctcBackward(dLoss, X, T, XMask, TMask, alphas, blankIdx)
% This function is undocumented and will change in a future release.

%   Copyright 2020-2021 The MathWorks, Inc.

if ~isreal(dLoss)
    error(message('deep:dlarray:ComplexGradientOutput', 'ctc'));
end

% Call cnnhost implementation
dX = nnet.internal.cnnhost.ctcBackward(dLoss, X, T, XMask, TMask, blankIdx, alphas);
end
