MCPcopy
hub / github.com/lutzroeder/netron / collectOptimizableConcats

Method collectOptimizableConcats

source/python.js:7642–7649  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7640 this._combinable_concats = [];
7641 }
7642 collectOptimizableConcats() {
7643 const graph_it = new torch._C.DepthFirstGraphNodeIterator(this._graph);
7644 for (let node = graph_it.next(); node !== null; node = graph_it.next()) {
7645 if (node.kind() === 'aten::cat') {
7646 this.handleConcat(node);
7647 }
7648 }
7649 }
7650 combineConcats() {
7651 if (this._combinable_concats.length === 0) {
7652 return false;

Callers 1

runMethod · 0.80

Calls 2

nextMethod · 0.45
kindMethod · 0.45

Tested by

no test coverage detected