System.find_models#

System.find_models(flag: Optional[Union[str, Tuple]], skip_zero: bool = True)[source]#

Find models with at least one of the flags as True.

Parameters
flaglist, str

Flags to find

skip_zerobool

Skip models with zero devices

Returns
OrderedDict

model name : model instance

Warning

Checking the number of devices has been centralized into this function. models passed to most System calls must be retrieved from here.