Jax: detach() or stop_gradient() equivalent?

Created on 18 Jan 2020  路  2Comments  路  Source: google/jax

If we want certain jax array to be invariant to gradient operator, what is the jax equivalent that we can use (in PyTorch detach() function or in tensorflow stop_gradient() operator works)?

question

Most helpful comment

All 2 comments

Thanks!

Was this page helpful?
0 / 5 - 0 ratings