Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Consider the output layer of a Convolutional Neural Network how many classes are there: 1 self . fc1=nn. Linear(out_2*x*x, 5) Enter answer here2. How

image text in transcribedimage text in transcribed
1. Consider the output layer of a Convolutional Neural Network how many classes are there: 1 self . fc1=nn. Linear(out_2*x*x, 5) Enter answer here2. How many convolutional layers dose the following neural network class or module have: class CNN (nn . Module) : # Contructor def init_(self, out_1=16, out_2=32): super (CNN, self) ._init_() self. cnnl = nn. Conv2d(in_channels=1, out_channels=out_1, kernel_size=5, padding=2) self .maxpooll=nn . MaxPool2d (kernel_size=2) self . cnn2 = nn. Conv2d( in_channels=out_1, out_channels=out_2, kernel_size=5, stride=1, padd ing=2) self . maxpool2=nn . MaxPool2d (kernel_size=2) self . fol = nn. Linear(out_2 * 4 * 4, 10) # Prediction def forward (self, x) : x = self . cnnl(x) x = torch. relu(x) = self.maxpooll (x) x = self . cnn2 (x) x = torch. relu(x) x = self . maxpool2 (x) x = x. view(x. size(0), -1) x = self . fcl(x) return x Enter answer here

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

Working In Teams Moving From High Potential To High Performance

Authors: Brian A. Griffith ,Ethan B. Dunham

1st Edition

1452286302, 978-1452286303

More Books

Students also viewed these General Management questions

Question

=+c. If you were to learn that a bottle of Gatorade

Answered: 1 week ago