本博客通过tensorflow实现inception10模型,对于inception10模型有不同的写法,包括,sequence模型、类封装、自定义函数,而本博客主要通过自定义函数和类封装实现inception10,代码和模块图如下:
![请添加图片描述](https://img-blog.csdnimg.cn/84bb5d72a6804ef997a515b6e7f4c5a4.png)
inception10流程图如下:
![在这里插入图片描述](https://img-blog.csdnimg.cn/9cc7eda7c5504c9cbb2eee0b84a6cab8.jpeg#pic_center)
1. 自定义函数实现 inception-10
方法一:
import tensorflow as tf
from tensorflow.keras.datasets import cifar10
from tensorflow.keras.layers import