区别SAME和VALID

VALID

input = tf.Variable(tf.random_normal([1,5,5,5]))  filter = tf.Variable(tf.random_normal([3,3,5,1]))  op = tf.nn.conv2d(input, filter, strides=[1, 1, 1, 1], padding='VALID')  

输出图形:

.....
.xxx.
.xxx.
.xxx.
..... 

SAME

input = tf.Variable(tf.random_normal([1,5,5,5]))
filter = tf.Variable(tf.random_normal([3,3,5,1]))  op = tf.nn.conv2d(input, filter, strides=[1, 1, 1, 1], padding='SAME') 
xxxxx
xxxxx
xxxxx
xxxxx
xxxxx  

VALID SAME相关推荐

  1. LeetCode 125 Valid Palindrome(有效回文)(*)

    版权声明:转载请联系本人,感谢配合!本站地址:http://blog.csdn.net/nomasp https://blog.csdn.net/NoMasp/article/details/5062 ...

  2. leetcode—Valid Parentheses

    1.问题描述 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if t ...

  3. Valid Sudoku leetcode java

    题目: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could ...

  4. LeetCode 20. Valid Parentheses--笔试题--Python解法

    题目地址:Valid Parentheses - LeetCode Given a string containing just the characters '(', ')', '{', '}', ...

  5. C++报错解决:what(): basic_string::_S_construct null not valid

    terminate called after throwing an instance of 'std::logic_error'what(): basic_string::_S_construct ...

  6. 报错解决:-bash: export: `g++11=g++': not a valid identifier

    晚上在设置环境变量的时候报错如下: zhang@ubuntu:~$ export g++11=g++ -bash: export: `g++11=g++': not a valid identifie ...

  7. 报错解决:InvalidArgumentError: Received a label value of 101 which is outside the valid range of [0, 101

    报错解决:InvalidArgumentError: Received a label value of 101 which is outside the valid range of [0, 101 ...

  8. Maven:No goals have been specified for this build. You must specify a valid lifecycle phase

    1. 执行打包命令报错: No goals have been specified for this build. You must specify a valid lifecycle phase o ...

  9. mysql> select file,domain,alias,valid from tbl_check where file=‘ecloud_0824-0830.csv‘ into outfile

    mysql> select file,domain,alias,valid from tbl_check where file='ecloud_0824-0830.csv' into outfi ...

  10. Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for i

    keras  imshow显示图片显示不出来,报错 Clipping input data to the valid range for imshow with RGB data ([0..1] fo ...

最新文章

  1. 【笔记】震惊!世上最接地气的字符串浅谈(HASH+KMP)
  2. std::tuple类型
  3. ajax请求json和xml数据及对json和xml格式数据的解析
  4. 每日一皮:当我修复一个隐藏Bug时,陷入了死循环中....
  5. Ubuntu 安装redis desktop manager
  6. 计算机视觉与深度学习 | 深度学习与VO、SLAM、三维重建【论文及代码篇】
  7. PowerBI随笔(3)-增加自定义列
  8. git pull代码出现refusing to merge unrelated histories错误
  9. leetcode -- 515. Find Largest Value in Each Tree Row
  10. 数学中各种矩阵收集(转至其他博主)
  11. java注释修改_java – 使用注释修改方法
  12. iphone分辨率_揭示真实的手机屏幕大小和分辨率
  13. java消除整型数组中重复的元素,排序后输出新数组
  14. mysql 新建文件夹权限设置_MySQL文件及目录权限设置分析-爱可生
  15. 使用 ASM 实现 Java 语言的“多重继承”
  16. spring-第十七篇之spring AOP基于注解的零配置方式
  17. [Android][Android Studio] Gradle项目中添加JNI生成文件(.so文件)
  18. CMYK与RGB参数转换公式及转换方法
  19. 于娟的忠告----生命只有一次,活着才是王道啊!!!
  20. 可取回的国内csgo开箱网站incsgo开箱

热门文章

  1. 移动相关HTML设置
  2. 不常见但很有用的chrome调试工具使用方法
  3. LeetCode - Valid Number
  4. 理解HTTP session原理及应用
  5. 关于文件的默认读取和保存路径(转)
  6. 软件设计中的具体问题
  7. Hardfault 2
  8. IDEA中报错spring-boot-maven-plugin:not found
  9. 2019江行智能 后端开发工程师Go 面试题
  10. php mb strimwidth,wordpress截断函数mb_strimwidth()失效的解决方法