Skip to content

Gradients tracking in case of integer data type. #1106

Answered by LuluW8071
sachinlodhi asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you are correct. Calculating gradients relies on calculating changes even if that in extremely small during backpropagation.

In case of integer, it is just discrete meaning there might be no huge jump from going to $1$ to $2$ and huge jump from going to $1$ to $10$. Such sudden changes in jump results to non-smooth and non-converging behaviour.

But in case of floating values as you said its continuous, even infinitely small changes in its input helps during backprop thats whyy gradient calculation is limited to float and complex types.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sachinlodhi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants