MCPcopy Create free account
hub / github.com/tensorflow/tfjs / unique

Function unique

tfjs-converter/src/executor/model_analysis.ts:114–116  ·  view source on GitHub ↗
(nodes: Node[])

Source from the content-addressed store, hash-verified

112 usedNodes.has(typeof node === 'string' ? node : node.name);
113
114 function unique(nodes: Node[]): Node[] {
115 return [...new Map(nodes.map((node) => [node.name, node])).values()];
116 }
117 const predefinedNodes = unique([
118 ...inputNodes,
119 ...graph.weights,

Callers 2

unique.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…