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

Function createDenseModel

tfjs-layers/src/engine/training_dataset_test.ts:25–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23import {FakeNumericDataset} from './dataset_fakes';
24
25function createDenseModel(): tfl.LayersModel {
26 const model = tfl.sequential();
27 model.add(tfl.layers.dense(
28 {units: 1, inputShape: [1], kernelInitializer: 'zeros'}));
29 return model;
30}
31
32describeMathCPUAndGPU('LayersModel.fitDataset', () => {
33 // Reference Python tf.keras code:

Callers 1

Calls 1

addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…