# tensorplay.cuda.set_sync_debug_mode Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.set_sync_debug_mode.html ```python tensorplay.cuda.set_sync_debug_mode(debug_mode: int | str) → None ``` Set the debug mode for cuda synchronizing operations. Not enforced by this TensorPlay build; the signature is retained for API compatibility. Parameters: debug_mode ([str](https://docs.python.org/3/builtins/stdtypes.html#str) or [int](https://docs.python.org/3/builtins/functions.html#int)) – if “default” or 0, don’t error or warn on synchronizing operations, if “warn” or 1, warn on synchronizing operations, if “error” or 2, error out synchronizing operations.