Question 1 (20 mins)

Use PyTorch to find the numerical solution to $2x^2-4x+1$

Question 2 (20 mins)

Implement a custom activation function $f(x) = ln(1 + e^x)$, and integrate it into a simple neural network to approximate a simple function.

Question 3 (10 mins)

Use ONNX/Netron tools to visualize resnet18 architecture from torchvision library

Question 4 (30 mins)

Design a neural network in PyTorch that has two parallel input branches, combines these inputs with additional data midway through the network, and then splits into two separate output branches.

  1. Input Layer:
  2. First and Second Branch:
  3. Midway Additional Inputs:
  4. Combination of Branch Outputs and Additional Input:
  5. Shared Layers After Combination:
  6. Two Separate Output Branches: