Exemplo n.º 1
0
 public Set<NNInterface> getOutputLayers() {
   HashSet<NNInterface> aggregator = new HashSet<>();
   if (pipelines.isEmpty()) {
     aggregator.add(layer);
     return aggregator;
   }
   for (Pipeline pipeline : pipelines) {
     aggregator.addAll(pipeline.getOutputLayers());
   }
   return aggregator;
 }
Exemplo n.º 2
0
 public Pipeline link(Pipeline pipeline, int socket) throws Exception {
   layer.link(pipeline.getInputLayer(), socket);
   pipelines.add(pipeline);
   return this;
 }
Exemplo n.º 3
0
 public Pipeline after(Pipeline pipeline) throws Exception {
   layer.link(pipeline.getInputLayer());
   pipelines.add(pipeline);
   return pipeline;
 }