(rows: any[])
| 667 | */ |
| 668 | // tslint:disable-next-line:no-any |
| 669 | function deepBatchConcat(rows: any[]): DeepMapResult { |
| 670 | if (rows === null) { |
| 671 | return null; |
| 672 | } |
| 673 | |
| 674 | // use the first item to decide whether to recurse or batch here. |
| 675 | const exampleRow = rows[0]; |
| 676 | |
| 677 | if (canTensorify(exampleRow)) { |
| 678 | // rows is an array of primitives, Tensors, or arrays. Batch them. |
| 679 | const value = batchConcat(rows); |
| 680 | return {value, recurse: false}; |
| 681 | } |
| 682 | |
| 683 | // the example row is an object, so recurse into it. |
| 684 | return {value: null, recurse: true}; |
| 685 | } |
| 686 | |
| 687 | /** |
| 688 | * Assembles a list of same-shaped numbers, number arrays, or Tensors |
nothing calls this directly
no test coverage detected
searching dependent graphs…