Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The convolution layer inside of a CNN is intrinsically an affine trans - formation: A vector is received as input and is multiplied with a

The convolution layer inside of a CNN is intrinsically an affine trans-
formation: A vector is received as input and is multiplied with a matrix
to produce an output (to which a bias vector is usually added before
passing the result through a nonlinearity). This operation can be rep-
resented as y=Ax, in which A describes the affine transformation.
We will first revisit the convolution layer as discussed in the class.
Consider a convolution layer with a 33 kernel W, operated on a single
input channel x, represented as:
W=[w(0,0)w(0,1)w(0,2)w(1,0)w(1,1)w(1,2)w(2,0)w(2,1)w(2,2)],x=[x(0,0)x(0,1)x(0,2)x(1,0)x(1,1)x(1,2)x(2,0)x(2,1)x(2,2)]
Using this example, let us work out a stride-4 convolution layer, with
zero padding size of 2. Consider 'flattening' the input tensor x in
row-major order as:
x=[x(0,0),x(0,1),x(0,2),dots,x(2,0),x(2,1),x(2,2)]TT
Write down this convolution as a matrix operation A such that: Y=
Ax. Output Y is also flattened in row-major order. NOTE: For this
problem we are referring to a convolution in the deep learning context
(i.e. do not flip the kernel).
(a) What are the dimensions of A?
(b) Write down the entries in this matrix A.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago