- 需要先了解所用网络的结构
import torch.nn as nn
import torch
class Simple(nn.Module):
def __init__(self):
super().__init__()
self.feature = nn.Sequential(
nn.Conv2d(3, 16, 3, 1, 1, bias=True),
nn.MaxPool2d(2),
nn.Conv2d(16, 32, 3, 1, 1, bias=True),
nn.MaxPool2d(2),
nn.Conv2d(32

最低0.47元/天 解锁文章
285





