Can somebody explain, how does TensorFlow’s eager mode work? I am trying to build a simple regression as follows: Gradient output: [None, None, None, None, None, None] The error is following: Edit I updated my code. Now, the problem comes in gradients calculation, it is returning zero. I have checked the loss value that is non-zero. Answer Part 1: The