🍀 Challenge: Finding Gradient

Test yourself on gradient calculation.

We'll cover the following

Problem statement

You have already set up the computation graph in the previous exercise. The computation graph is provided to you. Now, your task is to find the gradient at a=3a=3.

Follow the steps below:

  1. Work out the gradient dzda\frac{dz}{da} and dzdb\frac{dz}{db}.
  2. Print the gradient at a=3a = 3.
  3. Print the gradient at b=2b = 2.


A computation graph between tensors a, b, x, y, and z.


Gradient dzda\frac{dz}{da} at a=3a = 3 Gradient dzdb\frac{dz}{db} at b=2b = 2

Get hands-on with 1200+ tech skills courses.