model.py#

mlui.tools.model.validate_shapes(shapes)[source]#

Validate the shapes of a model.

Parameters:

shapes (dict of tuples, list of tuples or tuple) – Shapes to be validated. Single shape is a tuple of (None, int).

Raises:

ValidateModelError – If the shapes are empty. If any individual shape is empty. If any individual shape contains more than 2 dimensions.