代码如下: # -*- coding: utf-8 -*-#@Time :2019/7/1 13:34#@Author :XiaoMa import torch as tfrom torch import nn#Sequential的三种写法net1=nn.Sequential()net1.add_module(conv,nn.Conv2d(3,3,3)) #Conv2D(输入通道数,输出通道数,卷积核大小)net1.a
代码如下:
输出结果如下:
|
2019-06-18
2019-07-04
2021-05-23
2021-05-27
2021-05-27