Draft: Introduction of Tiling
Compare changes
Files
95+ 3
− 3
@@ -37,15 +37,15 @@ class ExportNode(ABC):
void
to std::set<std::shared_ptr<Node>>
oldNodeGraphView->replaceWith({newNodes})
member function to ``aGraphView->replace({oldNodes}, {newNodes}). Add an option to replace in every GraphView?computeReceptiveField()
member function. This function is only valid for Tensor-based Operators
Slice
Operator with right dimensionsConcat
. Two consecutive Concat
for tiling both vertical and horizontal?.GraphView::replace
)flowchart LR
subgraph Tile with view on initial Tensor
direction LR
Tensor3((" ")) --> c5("Conv 1.1") & c6("Conv 1.2") & c7("Conv 1.3") & c8("Conv 1.4")
c5 --> r1(ReLU 2.1)
c6 --> r2(ReLU 2.2)
c7 --> r3(ReLU 2.3)
c8 --> r4(ReLU 2.4)
r1 & r2 & r3 & r4 --> concat2(Concat)
end
subgraph Tile with Slice
direction LR
Tensor1((" ")) --> s1("Slice 1") & s2("Slice 2") & s3("Slice 3") & s4("Slice 4")
s1 --> c1(Conv 1.1)
s2 --> c2(Conv 1.2)
s3 --> c3(Conv 1.3)
s4 --> c4(Conv 1.4)
c1 --> r5(ReLU 2.1)
c2 --> r6(ReLU 2.2)
c3 --> r7(ReLU 2.3)
c4 --> r8(ReLU 2.4)
r5 & r6 & r7 & r8 --> concat1(Concat)
end
subgraph Initial
direction LR
Tensor2((" ")) --> Conv("Conv 1") --> ReLU("ReLU 1")
end
auto g = importONNX("a/path.onnx");
for (auto& individualConv : g->match("Conv")) {
auto tiledConv = tiling(individualConv);
g->replace(individualConv, tiledConv);
}
Copyright © Eclipse Foundation, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Copyright Agent