(n)
| 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.'); |
no test coverage detected