MCPcopy
hub / github.com/lutzroeder/netron / hasUntrackedMutation

Method hasUntrackedMutation

source/python.js:6911–6920  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

6909 }
6910 }
6911 hasUntrackedMutation(node) {
6912 if (!this._useAliasDb) {
6913 if (node.kind() === 'prim::SetAttr') {
6914 return true;
6915 }
6916 const schema = node.maybeSchema();
6917 return schema && schema.is_mutable();
6918 }
6919 return this.getOrCreateAliasDb().writesToWildcard(node);
6920 }
6921 hasSideEffects(node) {
6922 const it = this._memo.get(node);
6923 if (it) {

Callers 1

hasSideEffectsMethod · 0.80

Calls 5

maybeSchemaMethod · 0.80
is_mutableMethod · 0.80
writesToWildcardMethod · 0.80
getOrCreateAliasDbMethod · 0.80
kindMethod · 0.45

Tested by

no test coverage detected