Explain what do this 3 lines does?

{mentor edit: removing code}

Hello @Mohamed_khaled_badr,

What about the exercise’s description? Does this formula available there answer your question?

螢幕擷取畫面_20221128_064308

If you are not familiar with grad and gradapprox, you may want to read the whole assignment again.

Cheers,
Raymond

PS: I am removing your code because we can’t share assignment code here.

1 Like