xnn.cnn.fast.conv.conv3d#

xnn.cnn.fast.conv.conv3d(x, weight, bias=None, stride=1, padding=0, dilation=1, groups=1)[source]#

torch.nn.functional.conv3d on cuDNN’s channels-last kernels, twice differentiable.

Parameters:
  • x (Tensor) – Input (B, C_in, X, Y, Z) on a CUDA device.

  • weight (Tensor) – Kernel (C_out, C_in / groups, s, s, s).

  • bias (Tensor or None, optional) – Per-channel bias, added outside the searched convolution.

  • stride (int, optional) – As in conv3d (the same value on every axis).

  • padding (int, optional) – As in conv3d (the same value on every axis).

  • dilation (int, optional) – As in conv3d (the same value on every axis).

  • groups (int, optional) – As in conv3d (the same value on every axis).

Returns:

(B, C_out, X', Y', Z').

Return type:

Tensor