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

Function tidy

tfjs-core/src/globals.ts:190–193  ·  view source on GitHub ↗
(
    nameOrFn: string|ScopeFn<T>, fn?: ScopeFn<T>)

Source from the content-addressed store, hash-verified

188 * @doc {heading: 'Performance', subheading: 'Memory'}
189 */
190export function tidy<T extends TensorContainer>(
191 nameOrFn: string|ScopeFn<T>, fn?: ScopeFn<T>): T {
192 return ENGINE.tidy(nameOrFn, fn);
193}
194
195/**
196 * Disposes any `tf.Tensor`s found within the provided object.

Callers 15

tensorStatsFunction · 0.90
confusionMatrixFunction · 0.90
perClassAccuracyFunction · 0.90
cropAndResizeFrameMethod · 0.90
binaryAccuracyFunction · 0.90
categoricalAccuracyFunction · 0.90
truePositivesFunction · 0.90
falseNegativesFunction · 0.90
falsePositivesFunction · 0.90
precisionFunction · 0.90
recallFunction · 0.90
r2ScoreFunction · 0.90

Calls 1

tidyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…