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

Function batchGetValue

tfjs-layers/src/variables.ts:323–325  ·  view source on GitHub ↗
(xs: LayerVariable[])

Source from the content-addressed store, hash-verified

321 * @return The values of the inputs, as an `Array` of`tf.Tensor`s.
322 */
323export function batchGetValue(xs: LayerVariable[]): Tensor[] {
324 return xs.map(x => x.read());
325}
326
327/**
328 * Update the value of multiple Variables at once.

Callers 3

getWeightsFunction · 0.90
setWeightsFunction · 0.90
getWeightsMethod · 0.90

Calls 1

readMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…