* Returns a human-readable description of the tensor. Useful for logging. * * @doc {heading: 'Tensors', subheading: 'Classes'}
(verbose = false)
| 489 | * @doc {heading: 'Tensors', subheading: 'Classes'} |
| 490 | */ |
| 491 | toString(verbose = false): string { |
| 492 | const vals = this.dataSync(); |
| 493 | return tensorToString(vals, this.shape, this.dtype, verbose); |
| 494 | } |
| 495 | |
| 496 | cast<T extends this>(dtype: DataType): T { |
| 497 | this.throwIfDisposed(); |
no test coverage detected