function [loss, alphas] = internal_ctc(X, T, XMask, TMask, blankIdx)
% This function is undocumented and will change in a future release.

%   Copyright 2020-2021 The MathWorks, Inc.

if ~isreal(X) || ~isreal(T) || ~isreal(XMask) || ~isreal(TMask)
    error(message('deep:dlarray:ComplexNotSupported'))
end

% Call cnnhost implementation
[loss, alphas] = nnet.internal.cnnhost.ctcForward(X, T, XMask, TMask, blankIdx);
end
