optional_cuda_array_validator_3d
- cubie.batchsolving._utils.optional_cuda_array_validator_3d(instance: Any, attribute: Any, value: Any) bool[source]
Validate that a value is
Noneor a three-dimensional CUDA array.- Parameters:
instance – Instance containing the attribute (required by attrs, unused here).
attribute – Attribute metadata supplied by attrs.
value – Value provided for validation.
- Returns:
TruewhenvalueisNoneor is a three-dimensional CUDA array.- Return type:
Notes
Delegates to
optional_cuda_array_validator()withdimensionsset to3.