(shape: Shape|{[name: string]: Shape})
| 71 | } |
| 72 | |
| 73 | function generateRandomTensorContainer(shape: Shape|{[name: string]: Shape}): |
| 74 | tfc.Tensor|{[name: string]: tfc.Tensor} { |
| 75 | let output: tfc.Tensor|{[name: string]: tfc.Tensor}; |
| 76 | if (Array.isArray(shape)) { |
| 77 | output = tfc.randomNormal(shape); |
| 78 | } else { |
| 79 | output = {}; |
| 80 | for (const name in shape) { |
| 81 | output[name] = tfc.randomNormal(shape[name]); |
| 82 | } |
| 83 | } |
| 84 | return output; |
| 85 | } |
| 86 | |
| 87 | class FakeNumericIterator extends LazyIterator<FitDatasetElement> { |
| 88 | private xBatchShape: Shape|{[name: string]: Shape}; |
no outgoing calls
no test coverage detected
searching dependent graphs…