MCPcopy
hub / github.com/tensorflow/tfjs / hasKey

Method hasKey

tfjs-layers/src/engine/executor.ts:121–123  ·  view source on GitHub ↗

* Probe whether a key already exists in the FeedDict. * @param key

(key: SymbolicTensor)

Source from the content-addressed store, hash-verified

119 * @param key
120 */
121 hasKey(key: SymbolicTensor): boolean {
122 return this.id2Value[key.id] != null;
123 }
124
125 /**
126 * Get all the SymbolicTensor available in this FeedDict.

Callers 2

executeFunction · 0.95
executor_test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected