Question 1
torch.tensor([1, 4, 7])
torch.tensor([2, 5, 8])
torch.tensor([3, 6, 9])
torch.tensor([4, 5, 6])
torch.tensor([5])
torch.tensor([1, 4, 7])
torch.tensor([2, 5, 8])
torch.tensor([3, 6, 9])
torch.tensor([4, 5, 6])
torch.tensor([5])
You have a tensor x = torch.tensor([1, 2, 3, 4]) with shape (4,). You perform the following operations:
stacked_x = torch.stack([x, x, x], dim=0)stacked_y = torch.stack([x, x, x], dim=1)What are the shapes of stacked_x and stacked_y respectively?
(3, 4) and (3, 4)
(3, 4) and (4, 3)
(4, 3) and (4, 3)
(4, 3) and (3, 4)
(1, 2, 2)
(2, 2)
(2,)
(1, 1, 2, 2)
(1, 2, 2, 1)
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.
The IIT Madras BS Introduction to Deep Learning and Generative AI (Deep Learning and GenAI) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term: 20 questions for 50 marks in 120 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.
| Feature | Deep Learning and GenAI Quiz 1 26 Oct 2025 at a glance |
|---|---|
| Term | September 2025 term |
| Subject | Introduction to Deep Learning and Generative AI |
| Course code | BSDA2001 |
| Questions | 20 |
| Marks | 50 |
| Duration | 120 min |
| MCQ | 10 |
| Numerical | 10 |
| Official paper | IIT M DIPLOMA AN EXAM QDD2 26 Oct 2025 |
| Negative marking | No negative marking. |
| Updated |