Quiz Space

Deep Learning Practice End Term: 13 April 2025 (January 2025 term)

Question 1

+5 marksOne correct option

Consider the following code snippet for modifying an AlexNet architecture to adapt it for a custom classification task with 10 output classes. Fill in the blank portion with the most appropriate code snippet.

python
import torch
import torch.nn as nn
from torchvision.models import alexnet
class CustomAlexNet(nn.Module):
def __init__(self, num_classes=10):
super(CustomAlexNet, self).__init__()
self.alexnet = alexnet(pretrained=True)
# Blank portion
def forward(self, x):
x = self.alexnet.features(x)
x = self.alexnet.avgpool(x)
x = torch.flatten(x, 1)
x = self.alexnet.classifier(x)
return x
model = CustomAlexNet()

Which of the following code snippets correctly fills the blank portion to modify the AlexNet classifier while preserving the pretrained feature extraction layers?

  1. A
  2. B
  3. C
  4. D

Question 2

+5 marksOne correct option

An RGB image of size 227 × 227 × 3 is first converted to grayscale and then passed through a 2D Convolutional Neural Network (CNN) layer with the following parameters:
– Kernel size: 3 × 3
– Stride: 1
– Padding: 1
– Number of filters: 16
What will be the shape of the output feature map?

  1. A

    (227, 227, 3)

  2. B

    (227, 227, 16)

  3. C

    (225, 225, 16)

  4. D

    (114, 114, 16)

Question 3

+5 marksOne correct option
  1. A

    0.25

  2. B

    0.29

  3. C

    0.45

  4. D

    0.21

17 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the Deep Learning Practice End Term 13 Apr 2025 paper

The IIT Madras BS Deep Learning Practice (Deep Learning Practice) End Term paper sat on 13 Apr 2025, in the January 2025 term: 20 questions for 100 marks in 180 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureDeep Learning Practice End Term 13 Apr 2025 at a glance
TermJanuary 2025 term
SubjectDeep Learning Practice
Course codeBSDA5013
Questions20
Marks100
Duration180 min
MCQ15
MSQ5
Official paperIIT M FOUNDATION AN EXAM QDF3 13 Apr 2025
Negative markingNo negative marking.
Updated

Same End Term, other subjects

More Deep Learning Practice