Skip to content

Commit c50641d

Browse files
author
NeiroYT
committed
Linux hey
1 parent cee0c95 commit c50641d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/graph_transformations/graph_transformations.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ void fill_possible_assignments(
4545
std::vector<std::vector<int>>& possible_assignments) {
4646
possible_assignments.assign(subgraph.getLayersCount(), std::vector<int>());
4747
for (size_t i = 0; i < possible_assignments.size(); i++) {
48-
for (size_t j = 0; j < graph.getLayersCount(); j++) {
49-
if (graph.getOutputsSize(j) < subgraph.getOutputsSize(i) || graph.getInputsSize(j) < subgraph.getInputsSize(i)) {
48+
for (size_t j = 0; j < static_cast<size_t>(graph.getLayersCount()); j++) {
49+
if (graph.getOutputsSize(j) < subgraph.getOutputsSize(i) ||
50+
graph.getInputsSize(j) < subgraph.getInputsSize(i)) {
5051
continue;
5152
}
5253
possible_assignments[i].push_back(static_cast<int>(j));
@@ -449,7 +450,7 @@ void changed_subgraphs(const Graph& graph, const Graph& subgraph_from,
449450
for (int j : leaves_outs_final) {
450451
new_graph.makeConnection(layer, new_graph.getLayerFromID(j));
451452
}
452-
for (int j = 0; j < split_vec.size(); j++) {
453+
for (size_t j = 0; j < split_vec.size(); j++) {
453454
new_graph.addForSplit(split_vec[j].first, layer->getID(),
454455
split_vec[j].second);
455456
}

0 commit comments

Comments
 (0)