Skip to content
Snippets Groups Projects
Commit 715ee10b authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Fixed missing references

parent a5eccecc
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@ Aidge::IOIndex_t Aidge::GraphView::getNbDataInputs() const {
Aidge::IOIndex_t Aidge::GraphView::getNbFreeDataInputs() const {
IOIndex_t nbIn = 0;
for (const std::shared_ptr<Node> inputNode : mInputNodes) {
for (const std::shared_ptr<Node>& inputNode : mInputNodes) {
nbIn += inputNode->getNbFreeDataInputs();
}
return nbIn;
......
......@@ -62,7 +62,7 @@ std::shared_ptr<Aidge::GraphView> Aidge::Residual(std::initializer_list<OpArgs>
std::shared_ptr<Node> lastNode = *gv->outputNodes().begin();
assert(gv->inputNodes().size() == 2U && "Zero or more than one input Node for the GraphView, don't know which one to choose from for the residual connection");
std::shared_ptr<Node> firstNode = nullptr;
for (const std::shared_ptr<Node> node_ptr : gv->inputNodes()) {
for (const std::shared_ptr<Node>& node_ptr : gv->inputNodes()) {
if (node_ptr != lastNode) {
firstNode = node_ptr;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment