コード例 #1
0
        public override Tensor Backward(Tensor tensor)
        {
            if (Prev == null)
            {
                return(null);
            }

            OutputGradient = tensor;
            Input.ActivationDx(ActivationFunction, tensor, InputGradient);
            return(InputGradient);
        }