(a: Layer, b: Layer)
| 215 | {inputs: [inputTensor], outputs: [output1, output2]}); |
| 216 | |
| 217 | const compareFunction = (a: Layer, b: Layer) => { |
| 218 | if (a.name < b.name) { |
| 219 | return -1; |
| 220 | } else if (a.name > b.name) { |
| 221 | return 1; |
| 222 | } else { |
| 223 | return 0; |
| 224 | } |
| 225 | }; |
| 226 | const sortedLayers = container.layers.slice().sort(compareFunction); |
| 227 | const expectedSortedLayers = [ |
| 228 | inputTensor.sourceLayer, layerA, layerB, layerC, layerX |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…