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

Method keep

tfjs-core/src/engine.ts:1034–1037  ·  view source on GitHub ↗
(result: T)

Source from the content-addressed store, hash-verified

1032 }
1033
1034 keep<T extends Tensor>(result: T): T {
1035 result.kept = true;
1036 return result;
1037 }
1038
1039 private startTape() {
1040 if (this.state.gradientDepth === 0) {

Callers 10

saveFuncMethod · 0.95
totalLossFunctionMethod · 0.80
fitLoopMethod · 0.80
fitDatasetFunction · 0.80
resetStatesMethod · 0.80
resetStatesMethod · 0.80
generateDropoutMaskFunction · 0.80
keepFunction · 0.80
globals_test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected