| 34 | AF_ERR_LOAD_LIB) |
| 35 | |
| 36 | static inline int backend_index(af::Backend be) { |
| 37 | switch (be) { |
| 38 | case AF_BACKEND_CPU: return 0; |
| 39 | case AF_BACKEND_CUDA: return 1; |
| 40 | case AF_BACKEND_OPENCL: return 2; |
| 41 | case AF_BACKEND_ONEAPI: return 3; |
| 42 | default: return -1; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | class AFSymbolManager { |
| 47 | public: |
no outgoing calls
no test coverage detected