Main Content

matlab.io.datastore.PartitionableByIndex Class

Namespace: matlab.io.datastore

(Not recommended) Add parallelization support to datastore

matlab.io.datastore.PartitionableByIndex is not recommended. For more information, see Compatibility Considerations.

Description

matlab.io.datastore.PartitionableByIndex is an abstract mixin class that adds parallelization support to your custom datastore for use with Deep Learning Toolbox™. This class requires Parallel Computing Toolbox™.

To use this mixin class, you must inherit from the matlab.io.datastore.PartitionableByIndex class in addition to inheriting from the matlab.io.Datastore base class. Type the following syntax as the first line of your class definition file:

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 matlab.io.datastore.PartitionableByIndex

  • Define the additional method: partitionByIndex

For more details and steps to create your custom datastore with parallel processing support, see Develop Custom Mini-Batch Datastore.

Methods

partitionByIndex(Not recommended) Partition datastore according to indices

Attributes

Abstracttrue
Sealedfalse

For information on class attributes, see Class Attributes.

Copy Semantics

Handle. To learn how handle classes affect copy operations, see Copying Objects.

Version History

Introduced in R2018a

collapse all