(
inputInfo: InputInfo, outShape: number[], component: number,
isFlatDispatchLayout: boolean)
| 625 | } |
| 626 | |
| 627 | function getInputSnippet( |
| 628 | inputInfo: InputInfo, outShape: number[], component: number, |
| 629 | isFlatDispatchLayout: boolean): string { |
| 630 | let res = getInputAtCoordsSnippet(inputInfo, component); |
| 631 | |
| 632 | const inShape = inputInfo.shape; |
| 633 | if (inShape.length <= outShape.length) { |
| 634 | res += getInputByOutputSnippet( |
| 635 | inputInfo, outShape, component, isFlatDispatchLayout); |
| 636 | } |
| 637 | |
| 638 | return res; |
| 639 | } |
| 640 | |
| 641 | /** |
| 642 | * Generates getOutputCoords() function that computes output coordinates |
no test coverage detected
searching dependent graphs…