cupy.testing.for_dtypes¶
-
cupy.testing.
for_dtypes
(dtypes, name='dtype')[source]¶ Decorator for parameterized dtype test.
Parameters: - dtypes (list of dtypes) – dtypes to be tested.
- name (str) – Argument name to which specified dtypes are passed.
This decorator adds a keyword argument specified by
name
to the test fixture. Then, it runs the fixtures in parallel by passing the each element ofdtypes
to the named argument.