Skip to content

Commit 8c8f68a

Browse files
author
Chaluvadi
committed
sync() default value fix
1 parent e84abdc commit 8c8f68a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrayfire_wrapper/lib/create_and_modify_array/manage_device.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def set_device(device_id: int, /) -> None:
427427
call_from_clib(set_device.__name__, device_id)
428428

429429

430-
def sync(device_id: int, /) -> None:
430+
def sync(device_id: int = -1, /) -> None:
431431
"""
432432
Blocks until all operations on device are finished.
433433

0 commit comments

Comments
 (0)