Functiondownsample_2dr"""Downsample a batch of 2D images with the given filter. Accepts a batch of 2D images of the shape `[N, C, H, W]` or `[N, H, W, C]` and dow
defense/diffpure/score_sde/models/up_or_down_sampling.py:235
Methodforward(
ctx, grad_output, kernel, grad_kernel, up, down, pad, g_pad, in_size, out_size
)
defense/diffpure/score_sde/op/upfirdn2d.py:29