patch_validators
Validator functions.
These functions are used to validate dimensions and axes of inputs.
patch_size_ge_than_8_power_of_2(patch_list) #
Validate that each entry is greater or equal than 8 and a power of 2.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
patch_list | Sequence of int, or None | Patch size. | required |
Raises:
| Type | Description |
|---|---|
ValueError | If the patch size if smaller than 8. |
ValueError | If the patch size is not a power of 2. |