The weight gradient of a convolution, built from differentiable ops.
Used by the graph-mode backward of both ConvNd and ConvTransposeNd
— for the latter with input and grad trading roles, since a
transposed convolution's weight gradient is its adjoint convolution's.
Parameters
inputTensorImplPtrThe convolution's input,
(B, C_in, S...).gradTensorImplPtrThe gradient of its output,
(B, C_out, O...).stride, pad, dilationconst int (&)[N]The convolution's own settings.
groupsintChannel groups;
C_in and C_out are both divisible by it.weight_ shapeconst Shape&(C_out, C_in / groups, K...) — the result's shape.Returns
TensorImplPtrdW with weight_shape, recorded on the graph.