MCPcopy
hub / github.com/tensorflow/tfjs / read

Method read

tfjs-layers/src/variables.ts:83–86  ·  view source on GitHub ↗

* Get a snapshot of the Variable's value. * * The returned value is a snapshot of the Variable's value at the time of * the invocation. Future mutations in the value of the tensor will only * be reflected by future calls to this method.

()

Source from the content-addressed store, hash-verified

81 * be reflected by future calls to this method.
82 */
83 read(): Tensor {
84 this.assertNotDisposed();
85 return this.val;
86 }
87
88 /**
89 * Update the value of the Variable.

Callers 1

addWeightFunction · 0.95

Calls 1

assertNotDisposedMethod · 0.95

Tested by

no test coverage detected