Section A: PyTorch Setup & Environment (Q1–Q5)


Q1. Why Do We Need PyTorch Installed Separately?

Question Description:

Explain why PyTorch is not included by default with Python and why it needs to be installed separately. Focus on hardware support (CPU/GPU), performance, and deep learning–specific features.

Sample Input:

Using Python for deep learning

Sample Output:

PyTorch is a specialized deep learning library that provides GPU acceleration and automatic differentiation, which standard Python does not include.


Q2. Verifying PyTorch Installation

Question Description:

Explain how you would confirm that PyTorch is installed correctly and accessible in your Python environment.

Sample Input:

import torch

Sample Output:

If no error occurs and torch.version prints correctly, PyTorch is installed.


Q3. CPU vs GPU Execution

Question Description: