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

Function objectListUid

tfjs-layers/src/utils/generic_utils.ts:90–104  ·  view source on GitHub ↗
(objs: any|any[])

Source from the content-addressed store, hash-verified

88 */
89// tslint:disable-next-line:no-any
90export function objectListUid(objs: any|any[]): string {
91 const objectList = toList(objs);
92 let retVal = '';
93 for (const obj of objectList) {
94 if (obj.id == null) {
95 throw new ValueError(
96 `Object ${obj} passed to objectListUid without an id`);
97 }
98 if (retVal !== '') {
99 retVal = retVal + ', ';
100 }
101 retVal = `${retVal}${Math.abs(obj.id)}`;
102 }
103 return retVal;
104}
105/**
106 * Converts string to snake-case.
107 * @param name

Callers

nothing calls this directly

Calls 2

toListFunction · 0.85
absMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…