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

Method supportedNode

source/python.js:7418–7440  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

7416 return this._aliasDb;
7417 }
7418 supportedNode(n) {
7419 torch._C.skip_list = torch._C.skip_list || new Set([
7420 'prim::If',
7421 'prim::Loop',
7422 'prim::Closure',
7423 'prim::Constant',
7424 'prim::AutogradZero',
7425 'prim::Uninitialized',
7426 'prim::Guard',
7427 'prim::profile',
7428 'prim::profile_ivalue',
7429 'prim::unchecked_unwrap_optional',
7430 'prim::awaitable',
7431 'aten::dequantize'
7432 ]);
7433 let no_mutation = false;
7434 if (this._aliasing_types) {
7435 no_mutation = !this.getOrCreateAliasDb().hasWriters(n);
7436 } else {
7437 no_mutation = this.noMutableValues(n.inputs()) && this.noMutableValues(n.outputs());
7438 }
7439 return no_mutation && !n.kind().startsWith('onnx::') && !torch._C.skip_list.has(n.kind()) && !n.isNondeterministic() && !n.hasSideEffects() && n.blocks().length === 0;
7440 }
7441 ConstantPropagation(...args) {
7442 if (args[0] instanceof torch.Graph) {
7443 throw new python.Error('Not implemented.');

Callers 1

ConstantPropagationMethod · 0.80

Calls 9

getOrCreateAliasDbMethod · 0.80
noMutableValuesMethod · 0.80
isNondeterministicMethod · 0.80
hasSideEffectsMethod · 0.80
blocksMethod · 0.80
inputsMethod · 0.45
outputsMethod · 0.45
kindMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected