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

Function bytesFromStringArray

tfjs-core/src/util_base.ts:510–517  ·  view source on GitHub ↗
(arr: Uint8Array[])

Source from the content-addressed store, hash-verified

508 * serves the website.
509 */
510export function bytesFromStringArray(arr: Uint8Array[]): number {
511 if (arr == null) {
512 return 0;
513 }
514 let bytes = 0;
515 arr.forEach(x => bytes += x.length);
516 return bytes;
517}
518
519/** Returns true if the value is a string. */
520export function isString(value: {}): value is string {

Callers 1

makeTensorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…