ensure_data_spec#

composer.core.ensure_data_spec(dataloader)[source]#

Ensures that the dataloader is a DataSpec.

Parameters

dataloader (DataSpec | Iterable | dict) โ€“ A DataSpec, DataLoader, or dict of DataSpec kwargs.

Returns

DataSpec โ€“ A DataSpec