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

Function stringArraysHaveSameElements

tfjs-node/src/saved_model.ts:430–437  ·  view source on GitHub ↗

* Compare if two unsorted arrays of string have the same elements. * @param arrayA * @param arrayB

(
    arrayA: string[], arrayB: string[])

Source from the content-addressed store, hash-verified

428 * @param arrayB
429 */
430function stringArraysHaveSameElements(
431 arrayA: string[], arrayB: string[]): boolean {
432 if (arrayA.length === arrayB.length &&
433 arrayA.sort().join() === arrayB.sort().join()) {
434 return true;
435 }
436 return false;
437}
438
439function mapTFDtypeToJSDtype(tfDtype: string): DataType {
440 switch (tfDtype) {

Callers 3

predictMethod · 0.85
loadSavedModelFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…