set_soft_device_mode#

ivy.set_soft_device_mode(mode)[source]#

Set the mode of whether to move input arrays to ivy.default_device() before performing an operation.

Return type:

None

Parameter#

mode

boolean whether to move input arrays

Examples

>>> ivy.set_soft_device_mode(False)
>>> ivy.soft_device_mode
False
>>> ivy.set_soft_device_mode(True)
>>> ivy.soft_device_mode
True