Skip to Content
深度学习入门 : 基于Python的理论与实现
book

深度学习入门 : 基于Python的理论与实现

by 斋藤康毅
July 2018
Intermediate to advanced
310 pages
8h 21m
Chinese
Posts & Telecom Press
Content preview from 深度学习入门 : 基于Python的理论与实现
7.4  卷积层和池化层的实现 
219
7-19  卷积运算的滤波器处理的细节:将滤波器纵向展开为1 列,并计算和im2col 展开
的数据的矩阵乘积,最后转换(reshape)为输出数据的大小
im2col
reshape
输入数据
输出数据
输出数据(2 维)
滤波器
矩阵的乘积
滤波器
7.4.3
 卷积层的实现
本书提供了
im2col
函数,并将这个
im2col
函数作为黑盒(不关心内部实现)
使用。
im2col
的实现内容在
common/util.py
中,它的实现(实质上)是一个 10
行左右的简单函数。有兴趣的读者可以参考。
im2col
这一便捷函数具有以下接口。
im2col (input_data, filter_h, filter_w, stride=1, pad=0)
input_data
由(
数据量,通道,高,长
)的 4维数组构成的输入数据
filter_h
滤波器的高
filter_w
滤波器的长
stride
步幅
pad
填充
7章 卷积神经网络
220
im2col
会考虑滤波器大小
步幅、填充,将输入数据展开为 2 维数组。现在,
我们来实际使用一下这个
im2col
import sys, os
sys.path.append(os.pardir)
from common.util ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ルールズ・オブ・プログラミング ―より良いコードを書くための21のルール

ルールズ・オブ・プログラミング ―より良いコードを書くための21のルール

Chris Zimmerman, 久富木 隆一

Publisher Resources

ISBN: 9787115485588