Example #1
0
        /**
         * Connects the output of the specified {@code Region} to the
         * input of this Region
         *
         * @param inputRegion   the Region who's emissions will be observed by
         *                      this Region.
         * @return
         */
        Region connect(Region inputRegion)
        {
            inputRegion.observe().subscribe(new IObserver <IInference>()
            {
                ManualInput localInf = new ManualInput();

                @Override public void onCompleted()
Example #2
0
 /// <summary>
 /// Invoked after layer has completed calculation.
 /// </summary>
 /// <param name="inference"></param>
 public void OnNext(IInference inference)
 {
     if (layersDistinct)
     {
         this.inputLayer.compute(inference);
     }
     else
     {
         ManualInput newInf = new ManualInput();
         newInf.Sdr        = inference.Sdr;
         newInf.RecordNum  = inference.RecordNum;
         newInf.LayerInput = inference.Sdr;
         this.inputLayer.compute(newInf);
     }
 }