// Emit Network_input_count function
source.append("unsigned ", name, "_input_count(const ", name, " *net) {");
source.indent();
- source.append("net->inputs.size();");
+ source.append("return net->inputs.size();");
source.unindent();
source.append("}");
// Emit Network_output_count function
source.append("unsigned ", name, "_output_count(const ", name, " *net) {");
source.indent();
- source.append("net->outputs.size();");
+ source.append("return net->outputs.size();");
source.unindent();
source.append("}");