MCPcopy Index your code
hub / github.com/tensorflow/tfjs / prepModel

Function prepModel

tfjs-layers/src/engine/training_test.ts:2718–2724  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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]);

Callers 1

training_test.tsFile · 0.85

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…