Function
updateAdd
(x: LayerVariable, increment: Tensor)
Source from the content-addressed store, hash-verified
| 301 | * @return The Variable updated. |
| 302 | */ |
| 303 | export 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
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…