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:
Decorator adds the keyword arguments specified by
namesto 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. IffullisTrue, all combinations oftypesare tested. Sometimes, such an exhaustive test can be costly. So, iffullisFalse, only a subset of possible combinations is randomly sampled. IffullisNone, 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.