예제 #1
0
 public Mult(ConvNetSharp <T> graph, Op <T> left, Op <T> right) : base(graph)
 {
     AddParent(left);
     AddParent(right);
 }
예제 #2
0
파일: Dense.cs 프로젝트: NSqda/XCoinTrader
 public Dense(ConvNetSharp <T> graph, Op <T> x, int neuronCount) : base(graph, x, 1, 1, neuronCount)
 {
 }
예제 #3
0
 public Activation(ConvNetSharp <T> graph, Op <T> x, ActivationType type) : base(graph)
 {
     AddParent(x);
     this.Type = type;
 }
예제 #4
0
 public LeakyReluGradient(ConvNetSharp <T> graph, Op <T> y, Op <T> derivate, T alpha) : base(graph)
 {
     this.Alpha = alpha;
     this.AddParent(y);
     this.AddParent(derivate);
 }
예제 #5
0
 public Sum(ConvNetSharp <T> graph, Op <T> x, Op <T> shape) : base(graph)
 {
     AddParent(x);
     AddParent(shape);
 }
예제 #6
0
 public Softmax(Op <T> x)
 {
     AddParent(x);
 }
예제 #7
0
 public Negate(ConvNetSharp <T> graph, Op <T> x) : base(graph)
 {
     AddParent(x);
 }
예제 #8
0
        public Sum(ConvNetSharp <T> graph, Op <T> x, Shape shape) : base(graph)
        {
            AddParent(x);

            this.OutputShape = shape;
        }
예제 #9
0
        public Shape(Op <T> x)
        {
            this._builder = BuilderInstance <T> .Create(); // we want to remain on host

            AddParent(x);
        }
예제 #10
0
 public void RemoveParent(Op <T> parent)
 {
     this.Parents.Remove(parent);
     parent.Children.Remove(this);
 }
        public ActivationGradient(ConvNetSharp <T> graph, Op <T> input, Op <T> output, Op <T> outputGradient, ActivationType type) : base(graph)
        {
            this.AddParent(input);
            this.AddParent(output);
            this.AddParent(outputGradient);

            this.Type = type;
        }
예제 #12
0
        public ConvolutionFilterGradient(ConvNetSharp <T> graph, Convolution <T> convolution, Op <T> derivate) : base(graph)
        {
            this._convolution = convolution;

            this.AddParent(convolution);
            this.AddParent(derivate);
        }
예제 #13
0
 public Power(ConvNetSharp <T> graph, Op <T> u, Op <T> v) : base(graph)
 {
     AddParent(u);
     AddParent(v);
 }