(n)
| 12822 | this._next = value; |
| 12823 | } |
| 12824 | insertBefore(n) { |
| 12825 | if (!n.inBlockList()) { |
| 12826 | throw new python.Error('Node not in block.'); |
| 12827 | } |
| 12828 | this.insertAfter(n.prev); |
| 12829 | return this; |
| 12830 | } |
| 12831 | insertAfter(n) { |
| 12832 | torch._C.AT_ASSERT(!this.inBlockList() || n.inBlockList()); |
| 12833 | torch._C.AT_ASSERT(n.owningBlock()); |
no test coverage detected