fn
conv2d_op
→TensorImplPtrint conv2d_op(const int & x, const int & W, const int & b, int stride_h, int stride_w, int pad_h, int pad_w, int dilation_h, int dilation_w, int groups)Python wrappers
Public Python APIs implemented by this engine symbol.Two-dimensional cross-correlation over a batch of images / feature maps.
Computes
Parameters
xTensorImplPtrInput of shape
(B, C_in, H, W).WTensorImplPtrFilters of shape
(C_out, C_in / groups, KH, KW).bTensorImplPtrBias of shape
(C_out,) or empty.stride_h, stride_wint= NonePer-axis stride. Default:
1.pad_h, pad_wint= NonePer-axis zero-padding. Default:
0.dilation_h, dilation_wint= NonePer-axis kernel-element spacing. Default:
1.groupsint= NoneChannel grouping. Default:
1.Returns
TensorImplPtrOutput of shape (B, C_out, H_out, W_out) with and analogously for .