MCPcopy Index your code
hub / github.com/tensorflow/tfjs / toString

Method toString

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

* Returns a human-readable description of the tensor. Useful for logging. * * @doc {heading: 'Tensors', subheading: 'Classes'}

(verbose = false)

Source from the content-addressed store, hash-verified

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();

Callers 15

perClassAccuracyFunction · 0.80
getDepsFunction · 0.80
shuffleFunction · 0.80
setColumnNamesMethod · 0.80
constructorMethod · 0.80
checkShapesMatchFunction · 0.80
isIntegerFunction · 0.80
printLayerSummaryFunction · 0.80
getUidFunction · 0.80
constructorMethod · 0.80

Calls 2

dataSyncMethod · 0.95
tensorToStringFunction · 0.90

Tested by

no test coverage detected