- 16
- 0
- 约5.25千字
- 约 5页
- 2021-10-28 发布于河南
- 举报
卷积神经网络-LENET
卷积
二维卷积
代码实现(输入数组X 核数组K 输出数组Y )
import torch
from torch import nn
class Corr2d(X , K):
h, w K.shape
Y torch.zeros((X .shape[0] - h + 1, X .shape[1] - w + 1)) # (n-k+2p)/s + 1
for i in range(Y .shape[0]):
for j in range(Y .shape[1]):
原创力文档

文档评论(0)