Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Introduction to Deep Learning and Generative AI
PyTorch tensors
Official Paper
Examination Instructions & Guidelines
- Solve on notebook/paper first before checking solutions.
- MCQ: Exactly 1 option is correct. Negative marking applies.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
Useful Reference Data for this Paper
Note: In all the questions, assume necessary imports wherever applicable.
Q1MCQ2 Marks·Choose one option
- Atorch.tensor([1, 4, 7])
- Btorch.tensor([2, 5, 8])
- Ctorch.tensor([3, 6, 9])
- Dtorch.tensor([4, 5, 6])
- Etorch.tensor([5])
- Q2MCQ2 Marks·Choose one option

- A(3, 4) and (3, 4)
- B(3, 4) and (4, 3)
- C(4, 3) and (4, 3)
- D(4, 3) and (3, 4)
- Q3MCQ2 Marks·Choose one option

- A(1, 2, 2)
- B(2, 2)
- C(2,)
- D(1, 1, 2, 2)
- E(1, 2, 2, 1)
- Q4MCQ2 Marks·Choose one option

- A

- B

- C

- D

- A