function varargout = fitcecoc(X,Y,varargin)
%FITCECOC Fit a multiclass model to gpuArray data.
%   OBJ = FITCECOC(X,Y)
%
%   Limitations:
%   Learners must be 'SVM' (default), 'KNN', 'Tree' or the corresponding
%   fit template objects templateSVM, templateKNN, templateTree.
%
%   See also FITCECOC, GPUARRAY.

%   Copyright 2021-2022 The MathWorks, Inc.

% Validate the inputs.
narginchk(2,inf);
[X,Y,varargin{:}] = validateInputsForClassificationFitFunction(X,Y,varargin);

% Call underlying toolbox function.
varargout = cell(1,max(1,nargout));
[varargout{:}] = parallel.internal.array.callToolboxFunction("stats/classreg/fitcecoc", X, Y, varargin{:});
end
