MCPcopy Index your code
hub / github.com/tensorflow/tfjs / updateAdd

Function updateAdd

tfjs-layers/src/variables.ts:303–305  ·  view source on GitHub ↗
(x: LayerVariable, increment: Tensor)

Source from the content-addressed store, hash-verified

301 * @return The Variable updated.
302 */
303export function updateAdd(x: LayerVariable, increment: Tensor): LayerVariable {
304 return x.write(tfc.add(x.read(), increment));
305}
306
307/**
308 * Update the value of a Variable by subtracting a decrement.

Callers

nothing calls this directly

Calls 3

writeMethod · 0.65
addMethod · 0.65
readMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…