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

Method arraySync

tfjs-core/src/tensor.ts:338–342  ·  view source on GitHub ↗

* Returns the tensor data as a nested array. The transfer of data is done * synchronously. * * @doc {heading: 'Tensors', subheading: 'Classes'}

()

Source from the content-addressed store, hash-verified

336 * @doc {heading: 'Tensors', subheading: 'Classes'}
337 */
338 arraySync(): ArrayMap[R] {
339 return toNestedArray(
340 this.shape, this.dataSync(), this.dtype === 'complex64') as
341 ArrayMap[R];
342 }
343
344 /**
345 * Asynchronously downloads the values from the `tf.Tensor`. Returns a

Callers 7

ensureLengthMethod · 0.80
tensor_test.tsFile · 0.80
bucketsMethod · 0.80

Calls 2

dataSyncMethod · 0.95
toNestedArrayFunction · 0.90

Tested by

no test coverage detected