MCPcopy Index your code
hub / github.com/lutzroeder/netron / markIfLive

Method markIfLive

source/python.js:6883–6895  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

6881 throw new python.Error('Not implemented.');
6882 }
6883 markIfLive(node) {
6884 for (const output of node.outputs()) {
6885 if (this._liveValues.has(output)) {
6886 return this.mark(node);
6887 }
6888 }
6889 if (this._useAliasDb) {
6890 if (this.getOrCreateAliasDb().writesToAlias(node, this._liveValues)) {
6891 return this.mark(node);
6892 }
6893 }
6894 return false;
6895 }
6896 sweep(block, recurse) {
6897 const nodes = Array.from(block.nodes()).reverse();
6898 for (const node of nodes) {

Callers 1

markMethod · 0.80

Calls 5

markMethod · 0.80
writesToAliasMethod · 0.80
getOrCreateAliasDbMethod · 0.80
outputsMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected