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

Function keep

tfjs-core/src/globals.ts:243–245  ·  view source on GitHub ↗
(result: T)

Source from the content-addressed store, hash-verified

241 * @doc {heading: 'Performance', subheading: 'Memory'}
242 */
243export function keep<T extends Tensor>(result: T): T {
244 return ENGINE.keep(result);
245}
246
247/**
248 * Executes `f()` and returns a promise that resolves with timing

Callers 10

onEpochEndMethod · 0.90
setLearningRateMethod · 0.90
constructorMethod · 0.90
pushBackMethod · 0.90
setItemMethod · 0.90
cloneAndKeepTensorMethod · 0.90
constructorMethod · 0.90
writeMethod · 0.90
constructorMethod · 0.90
importMethod · 0.90

Calls 1

keepMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…