(
variablesAndValues: Array<[LayerVariable, Tensor]>)
| 333 | * carries the new value. |
| 334 | */ |
| 335 | export function batchSetValue( |
| 336 | variablesAndValues: Array<[LayerVariable, Tensor]>): void { |
| 337 | variablesAndValues.forEach(variableAndValue => { |
| 338 | const variable: LayerVariable = variableAndValue[0]; |
| 339 | variable.write(variableAndValue[1]); |
| 340 | }); |
| 341 | } |
| 342 | |
| 343 | /** |
| 344 | * Returns the gradients of `variables` w.r.t. the return value of `lossFn`. |
no test coverage detected
searching dependent graphs…