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

Method dropInput

source/python.js:12859–12866  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

12857 return this;
12858 }
12859 dropInput(i) {
12860 torch._C.AT_ASSERT(i < this._inputs.length);
12861 const input_node = this._inputs[i];
12862 const use_it = this.findUseForInput(i);
12863 input_node._uses = input_node._uses.filter((use) => use !== use_it);
12864 this._inputs[i] = null;
12865 return input_node;
12866 }
12867 eraseOutput(i) {
12868 torch._C.AT_ASSERT(i < this._outputs.length);
12869 // torch._C.AT_ASSERT(this._outputs[i].uses().length === 0);

Callers 2

removeInputMethod · 0.80
removeAllInputsMethod · 0.80

Calls 2

findUseForInputMethod · 0.80
filterMethod · 0.45

Tested by

no test coverage detected