F.conv2d()

NN Layers

2D convolution — slide a kernel over an input, computing element-wise products and summing.

At each position, multiply the overlapping patch by the kernel and sum all products.

Python
Shift+Enter to run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Step 0 / 0
Speed

Write Python code and press Shift+Enter or click "Run" to visualize.

Run the operation to see step-by-step explanation.