MCPcopy
hub / github.com/tensorflow/tfjs / modelSummary

Function modelSummary

tfjs-vis/src/show/model.ts:55–75  ·  view source on GitHub ↗
(container: Drawable, model: LayersModel)

Source from the content-addressed store, hash-verified

53 * }
54 */
55export async function modelSummary(container: Drawable, model: LayersModel) {
56 const drawArea = getDrawArea(container);
57 const summary = getModelSummary(model);
58
59 const headers = [
60 'Layer Name',
61 'Output Shape',
62 '# Of Params',
63 'Trainable',
64 ];
65
66 const values = summary.layers.map(
67 l =>
68 [l.name,
69 l.outputShape,
70 l.parameters,
71 l.trainable,
72 ]);
73
74 table(drawArea, {headers, values});
75}
76
77/**
78 * Renders summary information about a layer and a histogram of parameters in

Callers 1

model_test.tsFile · 0.90

Calls 3

getDrawAreaFunction · 0.90
tableFunction · 0.90
getModelSummaryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…