Add parallelization support to datastore
PartitionableByIndex is an abstract mixin class that adds
parallelization support to your custom datastore for use with Neural Network
Toolbox™. This class requires Parallel
To use this mixin class, you must inherit from the
PartitionableByIndex class in addition to inheriting from the
base class. Type the following syntax as the first line of your class definition
classdef MyDatastore < matlab.io.Datastore & ... matlab.io.datastore.PartitionableByIndex ... end
To add support for parallel processing to your custom datastore, you must:
Inherit from an additional class
Define the additional method:
For more details and steps to create your custom datastore with parallel processing support, see Develop Custom Mini-Batch Datastore.
|Partition a datastore according to indices|
For information on class attributes, see Class Attributes (MATLAB).
Handle. To learn how handle classes affect copy operations, see Copying Objects (MATLAB).