픽셀이다. 이 변환은 두 개의 요소로 이루어진 합성곱 커널로 설명할 수 있다. 합성곱을 사용
해 계산하려면
319
×
280
×
3
=
267
,
960
개의 부동 소수점 연산(출력 픽셀 한 개당 두 번의 곱셈과 한 번의
덧셈)이 필요하다.
같은 연산을 행렬 곱셈으로 설명할 때 필요한 요소의 개수 측면에서 살펴보면
320
×
280
×
319
×
280
, 즉
약
80
억 개 이상의 요소가 필요하므로 합성곱 연산이
40
억 배 더 효율적이다. 또한 연산 측면에서 살펴보면
160
억 개 이상의 부동 소수점 연산을 수행해야 하므로 합성곱 연산이 약
6
만 배 더 효율적이다. 물론 행렬의
대부분 요소는
0
이 될 것이다. 행렬의
0
이 아닌 요소만 저장한다면 행렬 곱셈과 합성곱 연산의 부동 소수점
연산 수는 같다. 다만 행렬에는 여전히
2
×
319
×
280
=
178
,
640
개의 요소가 있어야 한다.
- 『심층 학습』(제이펍,
2018
), 이안 굿펠로
5.5.1
1
차원의 경우: 퇴플리츠 행렬 곱셈
띠 모양의 퇴플리츠 행렬은 다음과 같다.
Toeplitz
kk
k
k
k
k
k
k
k
k
k
k
k
kk
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
201
01
0
2
1
0
2
1
0
2
12
=
J
L
K
K
K
K
K
K
K
K
K
K
K
K
N
P
O
O
O
O
O
O
O
O
O
O
O
O
이 퇴플리츠 행렬에
1
차원 신호
x
=
(
x
0
,
x
1
,
x
2
,
x
3
,
x
4
,
x
5
,
x
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.
O’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
I 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
I’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
I'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.