Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
saveFunc
Method · 0.95
saveTensorsForBackwardMode
Method · 0.95
totalLossFunction
Method · 0.80
fitLoop
Method · 0.80
fitDataset
Function · 0.80
resetStates
Method · 0.80
resetStates
Method · 0.80
generateDropoutMask
Function · 0.80
keep
Function · 0.80
globals_test.ts
File · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected