cupy.testing.for_dtypes_combination¶
-
cupy.testing.
for_dtypes_combination
(types, names=('dtype'), full=None)[source]¶ Decorator that checks the fixture with a product set of dtypes.
- Parameters
types (list of dtypes) – dtypes to be tested.
names (list of str) – Argument names to which dtypes are passed.
full (bool) – If
True
, then all combinations of dtypes will be tested. Otherwise, the subset of combinations will be tested (see the description below).
Decorator adds the keyword arguments specified by
names
to the test fixture. Then, it runs the fixtures in parallel with passing (possibly a subset of) the product set of dtypes. The range of dtypes is specified bytypes
.The combination of dtypes to be tested changes depending on the option
full
. Iffull
isTrue
, all combinations oftypes
are tested. Sometimes, such an exhaustive test can be costly. So, iffull
isFalse
, only a subset of possible combinations is randomly sampled. Iffull
isNone
, the behavior is determined by an environment variableCUPY_TEST_FULL_COMBINATION
. If the value is set to'1'
, it behaves as iffull=True
, and otherwisefull=False
.