Quiz Space

Deep Learning and GenAI Quiz 2: 23 November 2025 (September 2025 term)

Question 1

+2 marksOne correct option

You have a tensor x = torch.tensor([1, 2, 3, 4]).

You perform

python
stacked_x_dim0 = torch.stack([x, x, x], dim=0)

And

python
stacked_x_dim1 = torch.stack([x, x, x], dim=1)

What will be the shapes of stacked_x_dim0 and stacked_x_dim1 respectively?

  1. A

    stacked_x_dim0: [3, 3], stacked_x_dim1: [4, 4]

  2. B

    stacked_x_dim0: [4, 3], stacked_x_dim1: [3, 4]

  3. C

    stacked_x_dim0: [3, 4], stacked_x_dim1: [4, 3]

  4. D

    stacked_x_dim0: [4, 4], stacked_x_dim1: [3, 3]

Question 2

+1 markOne correct option

You have a PyTorch tensor

python
gpu_tensor = torch.tensor([1, 2, 3]).to('cuda')

residing on the GPU. You then attempt to convert it directly to a NumPy array using

python
numpy_array = gpu_tensor.numpy()

What will be the outcome of this operation?

  1. A

    It will successfully convert gpu_tensor to a NumPy array on the CPU.

  2. B

    It will successfully convert gpu_tensor to a NumPy array that also resides on the GPU.

  3. C

    It will raise a RuntimeError because NumPy arrays cannot directly operate on GPU memory.

  4. D

    It will create a view of the gpu_tensor on the CPU without copying data.

  5. E

    The numpy() method is not available for GPU tensors.

Question 3

+1 markOne correct option

The Huber Loss function is introduced as a robust alternative to Mean Squared Error (MSE) and Mean Absolute Error (MAE). What is the primary characteristic of Huber Loss that makes it robust to outliers?

  1. A

    It always produces a gradient of zero for all errors, preventing large updates.

  2. B

    It exclusively uses a quadratic penalty, but only for errors exactly at the threshold.

  3. C

    It transitions from a quadratic loss for small errors to a linear loss for large errors, thereby down-weighting the impact of outliers.

  4. D

    It entirely ignores errors beyond a certain delta, considering them irrelevant.

  5. E

    It applies a logarithmic transformation to all error values before computing the loss.

22 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 and GenAI Quiz 2 23 Nov 2025 paper

The IIT Madras BS Introduction to Deep Learning and Generative AI (Deep Learning and GenAI) Quiz 2 paper sat on 23 Nov 2025, in the September 2025 term: 25 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.

FeatureDeep Learning and GenAI Quiz 2 23 Nov 2025 at a glance
TermSeptember 2025 term
SubjectIntroduction to Deep Learning and Generative AI
Course codeBSDA2001
Questions25
Marks50
Duration120 min
MCQ17
Numerical7
MSQ1
Official paperIIT M DIPLOMA AN EXAM QDD2 23 Nov 2025 NEW
Negative markingNo negative marking.
Updated

Same Quiz 2, other subjects

More Deep Learning and GenAI