Пример #1
0
 public Mult(ConvNetSharp <T> graph, Op <T> left, Op <T> right) : base(graph)
 {
     AddParent(left);
     AddParent(right);
 }
Пример #2
0
 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);
 }