(newValue)
| 13252 | return this._value; |
| 13253 | } |
| 13254 | replaceFirstUseWith(newValue) { |
| 13255 | torch._C.AT_ASSERT(this.owningGraph() === newValue.owningGraph()); |
| 13256 | const [u] = this.uses(); |
| 13257 | u.user._inputs[u.offset] = newValue; |
| 13258 | newValue._uses.push(u); |
| 13259 | this._uses.shift(); |
| 13260 | } |
| 13261 | replaceAllUsesWith(newValue) { |
| 13262 | while (this.uses().length > 0) { |
| 13263 | this.replaceFirstUseWith(newValue); |
no test coverage detected