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

Function getRandomLayerOrModelName

tfjs-layers/src/model_summary_test.ts:16–18  ·  view source on GitHub ↗
(length = 12)

Source from the content-addressed store, hash-verified

14import {describeMathCPU} from './utils/test_utils';
15
16function getRandomLayerOrModelName(length = 12) {
17 return 'L' + Math.random().toFixed(length - 1).slice(2);
18}
19
20describeMathCPU('LayersModel.summary', () => {
21 let consoleLogHistory: string[];

Callers 1

Calls 1

sliceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…