Skip to content

Commit 4c93b97

Browse files
author
AndreySorokin7
committed
fix
1 parent 4b05f95 commit 4c93b97

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/Graph/build.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ void build_graph(Tensor& input, Tensor& output, bool comments,
163163

164164
for (size_t i = 0; i < layers.size() - 1; ++i) {
165165
if (layerpostop[i]) {
166-
layers[i-1]->postops.layers.push_back(layers[i].get());
167-
layers[i-1]->postops.count++;
168-
graph.makeConnection(*layers[i-1], *layers[i + 1]);
166+
layers[i - 1]->postops.layers.push_back(layers[i].get());
167+
layers[i - 1]->postops.count++;
168+
graph.makeConnection(*layers[i - 1], *layers[i + 1]);
169169
} else
170-
graph.makeConnection(*layers[i], *layers[i + 1]);
170+
graph.makeConnection(*layers[i], *layers[i + 1]);
171171
}
172172

173173
graph.setOutput(*layers.back(), output);

0 commit comments

Comments
 (0)