(backendName: string)
| 100 | } |
| 101 | |
| 102 | export function getKernelsForBackend(backendName: string): KernelConfig[] { |
| 103 | const it = kernelRegistry.entries(); |
| 104 | const result: KernelConfig[] = []; |
| 105 | |
| 106 | while (true) { |
| 107 | const {done, value} = it.next(); |
| 108 | if (done) { |
| 109 | break; |
| 110 | } |
| 111 | const [key, config] = value; |
| 112 | const [backend, ] = key.split('_'); |
| 113 | if (backend === backendName) { |
| 114 | result.push(config); |
| 115 | } |
| 116 | } |
| 117 | return result; |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Registers the function (forward pass) for the kernel in a global registry. |
no test coverage detected
searching dependent graphs…