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

Method array

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

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

()

Source from the content-addressed store, hash-verified

324 * @doc {heading: 'Tensors', subheading: 'Classes'}
325 */
326 async array(): Promise<ArrayMap[R]> {
327 const vals = await this.data();
328 return toNestedArray(this.shape, vals, this.dtype === 'complex64') as
329 ArrayMap[R];
330 }
331
332 /**
333 * Returns the tensor data as a nested array. The transfer of data is done

Callers 15

convertToRowMajorFunction · 0.80
dataset_test.tsFile · 0.80
cumprod_test.tsFile · 0.80
sigmoid_test.tsFile · 0.80
batchnorm_test.tsFile · 0.80
transpose_test.tsFile · 0.80
mean_test.tsFile · 0.80

Calls 2

dataMethod · 0.95
toNestedArrayFunction · 0.90