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

Method constructor

tfjs-layers/src/utils/executor_utils.ts:20–23  ·  view source on GitHub ↗
(maxEntries?: number)

Source from the content-addressed store, hash-verified

18 private maxEntries: number;
19
20 constructor(maxEntries?: number) {
21 this.maxEntries = maxEntries || 100;
22 this.cache = new Map<string, T>();
23 }
24
25 /**
26 * Get the entry for the key and mark it as used recently.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected