Parent: Object
This Deep Learning utility class accepts Model training Inputs and Outputs and returns batches of data according to the specified batch size. The batching operation occurs in the class constructors.
The first constructor accepts Model inputs and outputs and a desired batchSize. The resulting data batches are accessible via the GetInputBatch and GetOutputBatch methods. If enforceSameDimensions is true, the final batch will not be included if it has fewer than batchSize data points.
The second constructor produces batches for inputs only, with a batch size specified in the seqLength parameter. This version is used in the TorchSharp LSTM Learning Engine.
Returns the number of data batches generated.
Returns the input batch number n.
Returns the output batch number n.