set_array_mode#

ivy.set_array_mode(mode)[source]#

Set the mode of whether to convert inputs to ivy.NativeArray, then convert outputs back to ivy.Array.

It Stops the conversion of ivy.NativeArray to ivy.Array in the case when it is set to False.

Return type:

None

Parameter#

mode

boolean whether to perform ivy.Array conversions

Examples

>>> ivy.set_array_mode(False)
>>> ivy.array_mode
False
>>> ivy.set_array_mode(True)
>>> ivy.array_mode
True