()
| 2716 | let x: Tensor; |
| 2717 | let y: Tensor; |
| 2718 | function prepModel() { |
| 2719 | const input = tfl.layers.input({shape: [inputSize]}); |
| 2720 | const dense = tfl.layers.dense( |
| 2721 | {units: outputSize, kernelInitializer: 'ones', useBias: false}); |
| 2722 | const output = dense.apply(input) as tfl.SymbolicTensor; |
| 2723 | model = new tfl.LayersModel({inputs: input, outputs: output}); |
| 2724 | } |
| 2725 | function prepData() { |
| 2726 | x = ones([numExamples, inputSize]); |
| 2727 | y = ones([numExamples, outputSize]); |
no test coverage detected
searching dependent graphs…