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

Function updateSub

tfjs-layers/src/variables.ts:313–315  ·  view source on GitHub ↗
(x: LayerVariable, decrement: Tensor)

Source from the content-addressed store, hash-verified

311 * @return The Variable updated.
312 */
313export function updateSub(x: LayerVariable, decrement: Tensor): LayerVariable {
314 return x.write(tfc.sub(x.read(), decrement));
315}
316
317/**
318 * Get the values of an array of Variables.

Callers

nothing calls this directly

Calls 3

subMethod · 0.80
writeMethod · 0.65
readMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…