validate_model#

validate_model(model: Callable[[...], Union[Dict[Tuple[str, str], jaxtyping.Complex[Array, '...']], Tuple[jaxtyping.Int[Array, 'dim'], jaxtyping.Int[Array, 'dim'], jaxtyping.Complex[Array, '...'], Dict[str, int]], Tuple[jaxtyping.Complex[Array, '...'], Dict[str, int]]]]) bool[source]#

Validates a model.

Parameters

model (Model) – The model to validate.

Returns

True, if the model is valid.

Return type

bool

Raises

ValueError – If the model is invalid.