Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. class SoftMaxRegression(nn. Module): [ begin{array}{l} text { def init_(self): } text { super(). init_ () } text { # define layers }

image text in transcribed

1. class SoftMaxRegression(nn. Module): \[ \begin{array}{l} \text { def init_(self): } \\ \text { super(). init_ () } \\ \text { \# define layers } \\ \text { self. flatten }=n n \text {. Flatten() } \\ \text { self. linear }=n n . \text { Linear }(784,10) \\ \end{array} \] def forward (self,x) : \# Now it only takes a call to the layer to make predictions y=self,flatten(x)y=self.1inear(y) return y Suppose you have a set of color images of dimension (3322020) that belong to 11 different classes. You want to re-use the above simple model in order to work with such images. Give the two updated arguments for the definition of nn. Linear. (Please write only one number for each blank)

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions