machine-learning - calculate number of unique weights in a convolution layer
问题描述
If there is an input of 6x6 pixels and 3 channels and the padding and stride are both equal to 1 and the kernel size is 4x4. The output should only have 1 channel, how do you compute the number of unique weights in the layer?
I know that the formula to compute the output is subtracting the kernel size from the pixels and adding 2 times the padding, then dividing this number by the strides and adding 1. However I cannot seem to find a way to calculate the number of weights in a layer, could someone help me with this?
解决方案
推荐阅读
- python - 如何使用 Python 从网站下载交互式地图?
- json - Flutter 错误类“StudyList”没有实例方法“[]”
- python - EMFILE:打开的文件太多
- r - 在 lme4 包中获得两个回归斜率差异的输出
- java - 您如何与字符串进行大于或小于的比较
- android - Android 7 媒体播放器错误 (1,-2147483648)
- python - 如何在熊猫中已创建的数据框中插入列表项列表?
- python - 如何解决 TypeError:“numpy.float64”对象不能解释为整数
- python - Python在找到特定行时添加行
- reactjs - 列表中的 React Hooks 输入