zoukankan      html  css  js  c++  java
  • 【转载】 【Tensorflow】卷积神经网络中strides的参数

    原文地址:

    https://blog.csdn.net/TwT520Ly/article/details/79540251

    http://blog.csdn.net/TwT520Ly

    ------------------------------------------------------------------------------------------

    在二维卷积函数tf.nn.conv2d(),最大池化函数tf.nn.max_pool(),平均池化函数tf.nn.avg_pool()中,卷积核的移动步长都需要制定一个参数strides

    参数  strides:
    A list of ints. 1-D tensor of length 4. The stride of the sliding window for each dimension of input. The dimension order is determined by the value of data_format, see below for details.


    如果strides=[b,h,w,c],其中strides[0]和strides[3]默认为1。


        b    表示在样本上的步长默认为1,也就是每一个样本都会进行运算
        h    表示在高度上的默认移动步长为1,这个可以自己设定,根据网络的结构合理调节。
        w    表示在宽度上的默认移动步长为1,这个同上可以自己设定。
        c     表示在通道上的默认移动步长为1,这个表示 每一个通道  都会进行运算

    ------------------------------------------------------------------------------------------

  • 相关阅读:
    Python
    Python
    Jmeter 学习路线
    Git 学习路线
    数据库学习路线
    Linux 学习路线
    Gitlab(2)- centos7.x 下安装社区版 Gitlab 以及它的配置管理
    云原生学习路线(仅供参考)
    Python
    Python
  • 原文地址:https://www.cnblogs.com/devilmaycry812839668/p/10930512.html
Copyright © 2011-2022 走看看