classdef(Abstract) Formattable
    % Formattable   Mixin to enable formatted data for custom layers.
    % Use this mixin in combination with nnet.layer.Layer,
    % nnet.layer.RegressionLayer, or nnet.layer.ClassificationLayer.
    %
    % Example:
    %     % Define a layer that requires formatted input data.
    %
    %     classdef myLayer < nnet.layer.Layer & nnet.layer.Formattable
    %        methods
    %           function [Z1,...,Zm] = predict(layer,X1,...,Xn)
    %              % Forward input data through the layer at prediction time
    %              % and output the result.
    %              %
    %              % Inputs:
    %              %    layer       - Layer to forward propagate through
    %              %    X1, ..., Xn - Input data as formatted dlarray objects
    %              % Outputs:
    %              %    Z1, ..., Zm - Outputs of layer forward function
    %
    %              % Layer forward function for prediction goes here.
    %           end
    %        end
    %     end
    %
    % See also nnet.layer.Layer, nnet.layer.RegressionLayer, 
    % nnet.layer.ClassificationLayer

    %#codegen
    
    %   Copyright 2020-2021 The MathWorks, Inc.
    
end