Main Content

numpartitions

Number of partitions for label datastore

Description

N = numpartitions(ds) returns the default number of partitions for a label datastore ds.

N = numpartitions(ds,pool) returns the number of partitions needed to parallelize datastore access over the parallel pool specified by pool. To parallelize datastore access, you must have Parallel Computing Toolbox™ installed.

Input Arguments

collapse all

Datastore with labeled data for training a semantic segmentation network or an object detection network, specified as a pixelLabelDatastore or boxLabelDatastore object.

Parallel pool object.

Example: gcp

Version History

Introduced in R2017b