We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
invert
1 parent 62a9fa4 commit ff68bcaCopy full SHA for ff68bca
dpctl/tensor/_set_functions.py
@@ -698,6 +698,9 @@ def isin(
698
du.validate_usm_type(res_usm_type, allow_none=False)
699
sycl_dev = exec_q.sycl_device
700
701
+ if invert not in [True, False]:
702
+ raise ValueError(f"`invert` must be `True` or `False`, got {invert}")
703
+
704
x_dt = _get_dtype(x, sycl_dev)
705
test_dt = _get_dtype(test_elements, sycl_dev)
706
if not all(_validate_dtype(dt) for dt in (x_dt, test_dt)):
0 commit comments