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

Function precisionTestRunner

tfjs-react-native/integration_rn59/components/ml.ts:43–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 * A runner that does a basic precision test.
42 */
43export async function precisionTestRunner() {
44 return async () => {
45 const res = tf.tidy(() => tf.scalar(2.4).square());
46 const data = (await res.data())[0];
47 return JSON.stringify(data);
48 };
49}
50
51/**
52 * A runner that does a mobilenet prediction

Callers

nothing calls this directly

Calls 4

tidyMethod · 0.80
squareMethod · 0.80
scalarMethod · 0.80
dataMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…