* Returns the tensor data as a nested array. The transfer of data is done * asynchronously. * * @doc {heading: 'Tensors', subheading: 'Classes'}
()
| 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 |