(xs: TensorContainer[])
| 469 | */ |
| 470 | it('zipping TensorContainer streams requires manual merge', async () => { |
| 471 | function naiveMerge(xs: TensorContainer[]): TensorContainer { |
| 472 | const result = {}; |
| 473 | for (const x of xs) { |
| 474 | // For now, we do nothing to detect name collisions here |
| 475 | Object.assign(result, x); |
| 476 | } |
| 477 | return result; |
| 478 | } |
| 479 | |
| 480 | const a = new TestIntegerIterator().map(x => ({'a': x})); |
| 481 | const b = new TestIntegerIterator().map(x => ({'b': x * 10})); |
no test coverage detected
searching dependent graphs…