| 79 | } |
| 80 | |
| 81 | af_err af_get_backend_id(af_backend* result, const af_array in) { |
| 82 | try { |
| 83 | if (in) { |
| 84 | const ArrayInfo& info = getInfo(in, false); |
| 85 | *result = info.getBackendId(); |
| 86 | } else { |
| 87 | return AF_ERR_ARG; |
| 88 | } |
| 89 | } |
| 90 | CATCHALL; |
| 91 | return AF_SUCCESS; |
| 92 | } |
| 93 | |
| 94 | af_err af_get_device_id(int* device, const af_array in) { |
| 95 | try { |
no test coverage detected