numpartitions

Number of partitions for a 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, pixelLabelImageDatastore, or boxLabelDatastore object.

Parallel pool object.

Example: gcp

Introduced in R2017b