#NEWLINE# def get_device_id( A ) : #NEWLINE# #INDENT# '\n    Get the device id of the array\n\n    Parameters\n    ----------\n    A    : af.Array\n\n    Returns\n    ----------\n\n    dev : Integer\n         id of the device array was created on\n    ' #NEWLINE# device_id = ct . c_int ( 0 ) #NEWLINE# safe_call ( backend . get ( ) . af_get_device_id ( ct . pointer ( device_id ) , A . arr ) ) #NEWLINE# return device_id