Skip to content

Model Constraints Factory

Source

Model constraints factory.

get_model_constraints(model_config)

Get the model constraints for the given model configuration.

Parameters:

  • model_config (UNetConfig) –

    The model configuration.

Returns:

Raises:

  • ValueError

    If the model type is not supported.