Ejemplo n.º 1
0
        public static void Conv2DKernelsGradient(Tensor input, Tensor gradient, int stride, PaddingType padding, Tensor kernelsGradient)
        {
            kernelsGradient.Zero();
            int outputWidth = 0, outputHeight = 0, paddingX = 0, paddingY = 0;

            GetPaddingParams(padding, input.Width, input.Height, kernelsGradient.Width, kernelsGradient.Height, stride, out outputHeight, out outputWidth, out paddingX, out paddingY);
            Op.Conv2DKernelsGradient(input, gradient, stride, paddingX, paddingY, kernelsGradient);
        }
Ejemplo n.º 2
0
 public static void Conv2DKernelsGradient(Tensor input, Tensor gradient, int stride, PaddingType padding, Tensor kernelsGradient)
 {
     kernelsGradient.Zero();
     Op.Conv2DKernelsGradient(input, gradient, stride, padding, kernelsGradient);
 }