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

Function valuesDistribution

tfjs-vis/src/show/tensor.ts:38–43  ·  view source on GitHub ↗
(container: Drawable, tensor: Tensor)

Source from the content-addressed store, hash-verified

36 * 'show'}
37 */
38export async function valuesDistribution(container: Drawable, tensor: Tensor) {
39 const drawArea = getDrawArea(container);
40 const stats = await tensorStats(tensor);
41 const values = await tensor.data();
42 return histogram(drawArea, values, {height: 150, stats});
43}

Callers 1

tensor_test.tsFile · 0.90

Calls 4

getDrawAreaFunction · 0.90
tensorStatsFunction · 0.90
histogramFunction · 0.90
dataMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…