Skip to content

Commit ab068f5

Browse files
committed
Fixes a comment in _acceptance_fn_reciprocal
1 parent 1755f66 commit ab068f5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

dpctl/tensor/_type_utils.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,9 @@ def _acceptance_fn_default_unary(arg_dtype, ret_buf_dt, res_dt, sycl_dev):
140140

141141

142142
def _acceptance_fn_reciprocal(arg_dtype, buf_dt, res_dt, sycl_dev):
143-
# if the kind of result is different from
144-
# the kind of input, use the default data
145-
# we use default dtype for the resulting kind.
146-
# This guarantees alignment of reciprocal and
147-
# divide output types.
143+
# if the kind of result is different from the kind of input, we use the
144+
# default floating-point dtype for the resulting kind. This guarantees
145+
# alignment of reciprocal and divide output types.
148146
if buf_dt.kind != arg_dtype.kind:
149147
default_dt = _get_device_default_dtype(res_dt.kind, sycl_dev)
150148
if res_dt == default_dt:

0 commit comments

Comments
 (0)